Class DrawImprovementAction

java.lang.Object
com.takenoko.actions.improvement.DrawImprovementAction
All Implemented Interfaces:
Action

public class DrawImprovementAction extends Object implements Action
Action to draw an improvement from the deck. if the improvement is not available in the deck, the bot can choose to and apply a weather instead.
  • Field Details

  • Constructor Details

    • DrawImprovementAction

      public DrawImprovementAction(ImprovementType improvementType)
  • 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
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object