Package com.takenoko.actions
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 TypeMethodDescriptionexecute(Board board, BotManager botManager) Executes the action on the board and the bot manager.
-
Method Details
-
execute
Executes the action on the board and the bot manager.- Parameters:
board- the boardbotManager- the bot manager- Returns:
- the action result
-