Interface Action

All Known Subinterfaces:
DefaultAction
All Known Implementing Classes:
ApplyImprovementAction, ApplyImprovementFromInventoryAction, ChooseAndApplyWeatherAction, ChooseIfApplyWeatherAction, DrawImprovementAction, DrawIrrigationAction, DrawObjectiveAction, DrawTileAction, ForcedMovePandaAction, GrowBambooAction, MoveGardenerAction, MovePandaAction, PlaceIrrigationAction, PlaceIrrigationFromInventoryAction, PlaceTileAction, PlaceTileWithImprovementAction, RedeemObjectiveAction, StoreImprovementAction, StoreIrrigationInInventoryAction

public interface Action
Action interface. An action is a command that can be executed by the Bot Manager.
  • Method Summary

    Modifier and Type
    Method
    Description
    execute(Board board, BotManager botManager)
    Executes the action on the board and the bot manager.
  • Method Details

    • execute

      ActionResult execute(Board board, BotManager botManager)
      Executes the action on the board and the bot manager.
      Parameters:
      board - the board
      botManager - the bot manager
      Returns:
      the action result