Package it.polimi.ingsw.eriantys.model
Class ProfessorOwnership
java.lang.Object
it.polimi.ingsw.eriantys.model.ProfessorOwnership
This class represents the association between each
Color's professor and its respective owner.
It exposes a method to get all the professors owned by a Player,
two methods to activate and deactivate the effect of the Farmer character card,
and a method to update the professors owners after a movement of students.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidActivates theFarmercharacter card's effect.voidDeactivates theFarmercharacter card's effect.A helper-getter method to fulfill theBoardStatuscreation process.getProfessors(Player player) Returns theColorof the professors owned byplayer.voidUpdates the owner for each professor whose respectiveColoris contained intarget.
-
Constructor Details
-
ProfessorOwnership
-
-
Method Details
-
getProfessors
Returns theColorof the professors owned byplayer. -
activateEffect
public void activateEffect()Activates theFarmercharacter card's effect. -
deactivateEffect
public void deactivateEffect()Deactivates theFarmercharacter card's effect. -
update
Updates the owner for each professor whose respectiveColoris contained intarget. -
getOwnership
A helper-getter method to fulfill theBoardStatuscreation process.
-