Class Hephaestus
java.lang.Object
it.polimi.ingsw.server.controller.god.God
it.polimi.ingsw.server.controller.god.Hephaestus
public class Hephaestus extends God
Represents the card of the God Demeter.
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 Hephaestus(GodController godController) -
Method Summary
Modifier and Type Method Description voidevolveTurn(Worker worker)This method calls the sequence of actions that can be done by the player who owns Hephaestus.java.lang.StringgetDescription()GodControllergetGodController()Methods inherited from class it.polimi.ingsw.server.controller.god.God
build, move, toString, updateBuildMap, updateMoveMap, win
-
Field Details
-
description
public final java.lang.String description- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
evolveTurn
public void evolveTurn(Worker worker) throws UnableToMoveException, UnableToBuildException, WinExceptionThis method calls the sequence of actions that can be done by the player who owns Hephaestus.- Overrides:
evolveTurnin classGod- Parameters:
worker- This is the current worker.- Throws:
UnableToMoveException- The worker isn't allowed to move anywhere.UnableToBuildException- The worker isn't allowed to build anywhere.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
-