Class Zeus
java.lang.Object
it.polimi.ingsw.server.controller.god.God
it.polimi.ingsw.server.controller.god.Zeus
public class Zeus extends God
Represents the card of the God Zeus.
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 Zeus(GodController godController) -
Method Summary
Modifier and Type Method Description voidbuild(Worker worker)Lets the worker build a block or a dome.java.lang.StringgetDescription()GodControllergetGodController()WorkerBuildMapupdateBuildMap(Worker worker)The difference with the default method is that the build matrix of the worker is updated giving the possibility to build underneath the chosen worker.Methods inherited from class it.polimi.ingsw.server.controller.god.God
evolveTurn, move, toString, updateMoveMap, win
-
Field Details
-
description
public final java.lang.String description- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
build
Lets the worker build a block or a dome.- Overrides:
buildin classGod- Parameters:
worker- worker playing the current turn.- Throws:
UnableToBuildException- The worker isn't allowed to build anywhere.
-
updateBuildMap
The difference with the default method is that the build matrix of the worker is updated giving the possibility to build underneath the chosen worker.- Overrides:
updateBuildMapin classGod- Parameters:
worker- worker playing the turn.- Returns:
- The WorkerBuildMap of the chosen worker.
- Throws:
UnableToBuildException- signals that the worker cannot build anywhere.
-
getGodController
- Overrides:
getGodControllerin classGod
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescriptionin classGod
-