Package com.takenoko.actions.objective
Class DrawObjectiveAction
java.lang.Object
com.takenoko.actions.objective.DrawObjectiveAction
- All Implemented Interfaces:
Action
,DefaultAction
This class is used to draw an objective card.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canBePlayed
(Board board, BotState botState) boolean
execute
(Board board, BotManager botManager) Executes the action on the board and the bot manager.Get the objective type of the actionint
hashCode()
-
Field Details
-
objectiveType
-
-
Constructor Details
-
DrawObjectiveAction
Constructor. The parameter is mandatory as it allows to choose which type of objective you want.- Parameters:
objectiveType
- objectiveType
-
-
Method Details
-
execute
Description copied from interface:Action
Executes the action on the board and the bot manager. -
canBePlayed
-
getObjectiveType
Get the objective type of the action- Returns:
- ObjectiveType
-
equals
-
hashCode
public int hashCode()
-