Class Pan
java.lang.Object
it.polimi.ingsw.server.controller.god.God
it.polimi.ingsw.server.controller.god.Pan
public class Pan extends God
Represents the card of the God Pan.
Allows to follow the instructions and to apply the effect of this specific God.
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringdescription -
Constructor Summary
Constructors Constructor Description Pan(GodController godController) -
Method Summary
Modifier and Type Method Description java.lang.StringgetDescription()GodControllergetGodController()voidwin(Worker worker)Default condition is still valid, but now the selected worker of the player holding the Pan card can win also when reaches the level 2 of a building.Methods inherited from class it.polimi.ingsw.server.controller.god.God
build, evolveTurn, move, toString, updateBuildMap, updateMoveMap
-
Field Details
-
description
public final java.lang.String description- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
win
Default condition is still valid, but now the selected worker of the player holding the Pan card can win also when reaches the level 2 of a building.- Overrides:
winin classGod- Parameters:
worker- Worker playing the turn.- Throws:
WinException- The worker has reached the third level of a building and so wins the game.
-
getGodController
- Overrides:
getGodControllerin classGod
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescriptionin classGod
-