Class DrawObjectiveAction

java.lang.Object
com.takenoko.actions.objective.DrawObjectiveAction
All Implemented Interfaces:
Action, DefaultAction

public class DrawObjectiveAction extends Object implements DefaultAction
This class is used to draw an objective card.
  • Field Details

  • Constructor Details

    • DrawObjectiveAction

      public DrawObjectiveAction(ObjectiveType objectiveType)
      Constructor. The parameter is mandatory as it allows to choose which type of objective you want.
      Parameters:
      objectiveType - objectiveType
  • Method Details

    • execute

      public ActionResult execute(Board board, BotManager botManager)
      Description copied from interface: Action
      Executes the action on the board and the bot manager.
      Specified by:
      execute in interface Action
      Parameters:
      board - the board
      botManager - the bot manager
      Returns:
      the action result
    • canBePlayed

      public static boolean canBePlayed(Board board, BotState botState)
    • getObjectiveType

      public ObjectiveType getObjectiveType()
      Get the objective type of the action
      Returns:
      ObjectiveType
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object