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 booleancanBePlayed(Board board, BotState botState) booleanexecute(Board board, BotManager botManager) Executes the action on the board and the bot manager.Get the objective type of the actioninthashCode()
-
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:ActionExecutes 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()
-