Class ChooseIfApplyWeatherAction

java.lang.Object
com.takenoko.actions.weather.ChooseIfApplyWeatherAction
All Implemented Interfaces:
Action

public class ChooseIfApplyWeatherAction extends Object implements Action
Action to choose whether to apply the weather or not
  • Field Details

    • applyWeather

      private final boolean applyWeather
  • Constructor Details

    • ChooseIfApplyWeatherAction

      public ChooseIfApplyWeatherAction(boolean applyWeather)
  • 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