Interface Action


  • public interface Action
    Interface used to implement different type of Player actions on the Board
    • Method Detail

      • execute

        it.polimi.ingsw.model.Event[] execute​(Cell[][] map)
        Execute the action on the given game board
        Parameters:
        map - where to apply the action effects
        Returns:
        result event of the current action
      • setGod

        void setGod​(God god)
        Set the last god that changed this action
        Parameters:
        god - god to set as last god that changed this action
      • setBlocked

        void setBlocked​(boolean blocked)
        Disable any further changes on this action
        Parameters:
        blocked - disable this action from further changes
      • getTypeAction

        String getTypeAction()
        Get type of the action
        Returns:
        type of the action
      • set

        void set​(boolean status)
        Set action status
        Parameters:
        status - status to set
      • getStatus

        boolean getStatus()
        Get action status
        Returns:
        action status
      • clone

        Action clone()
        Clone
        Returns:
        clone of the action
      • getGod

        God getGod()
        Get the last god that changed this action
        Returns:
        last god that changed this action