Class Minotaur
java.lang.Object
it.polimi.ingsw.server.controller.god.God
it.polimi.ingsw.server.controller.god.Minotaur
public class Minotaur extends God
Represents the card of the God Minotaur.
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 Minotaur(GodController godController) -
Method Summary
Modifier and Type Method Description java.lang.StringgetDescription()GodControllergetGodController()voidmove(Worker worker)The minotaur move allows also to push back an enemy worker, if the cell behind the enemy (following the same direction) is free.WorkerMoveMapupdateMoveMap(Worker worker)The difference from the default method is that the worker can move into an enemy occupied cell.Methods inherited from class it.polimi.ingsw.server.controller.god.God
build, evolveTurn, toString, updateBuildMap, win
-
Field Details
-
description
public final java.lang.String description- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
move
The minotaur move allows also to push back an enemy worker, if the cell behind the enemy (following the same direction) is free. Default move is still valid.- Overrides:
movein classGod- Parameters:
worker- Selected worker that will move.- Throws:
UnableToMoveException- The worker isn't allowed to move anywhere.
-
updateMoveMap
The difference from the default method is that the worker can move into an enemy occupied cell.- Overrides:
updateMoveMapin classGod- Parameters:
worker- worker playing the turn.- Returns:
- The WorkerMoveMap of the chosen worker of the current turn.
- Throws:
UnableToMoveException- The worker isn't allowed to move anywhere.
-
getGodController
- Overrides:
getGodControllerin classGod
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescriptionin classGod
-