Class PlaceIrrigationFromInventoryAction

java.lang.Object
com.takenoko.actions.irrigation.PlaceIrrigationFromInventoryAction
All Implemented Interfaces:
Action, DefaultAction

public class PlaceIrrigationFromInventoryAction extends Object implements DefaultAction
  • Field Details

  • Constructor Details

    • PlaceIrrigationFromInventoryAction

      public PlaceIrrigationFromInventoryAction(EdgePosition positionVector)
  • 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)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object