Package it.polimi.ingsw.model
Interface Action
-
public interface ActionInterface used to implement different type of Player actions on the Board
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Actionclone()Cloneit.polimi.ingsw.model.Event[]execute(Cell[][] map)Execute the action on the given game boardGodgetGod()Get the last god that changed this actionbooleangetStatus()Get action statusStringgetTypeAction()Get type of the actionvoidset(boolean status)Set action statusvoidsetBlocked(boolean blocked)Disable any further changes on this actionvoidsetGod(God god)Set the last god that changed this action
-
-
-
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
-
-