Package net.sf.gridarta.action
Class MoveSquareUpAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.action.AbstractMoveSquareAction<G,A,R>
-
- net.sf.gridarta.action.MoveSquareUpAction<G,A,R>
-
- All Implemented Interfaces:
EditorAction
public class MoveSquareUpAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractMoveSquareAction<G,A,R>
AnEditorActionthat moves the selected game object in theSelectedSquareModelup.
-
-
Constructor Summary
Constructors Constructor Description MoveSquareUpAction(@NotNull SelectedSquareModel<G,A,R> selectedSquareModel, @Nullable MapManager<G,A,R> mapManager)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoAction(boolean performAction, G gameObject)Executes the action.voidmoveSquareUp()Action method for moving an arch up within its square.-
Methods inherited from class net.sf.gridarta.action.AbstractMoveSquareAction
doAction, setAction
-
-
-
-
Constructor Detail
-
MoveSquareUpAction
public MoveSquareUpAction(@NotNull @NotNull SelectedSquareModel<G,A,R> selectedSquareModel, @Nullable @Nullable MapManager<G,A,R> mapManager)Creates a new instance.- Parameters:
selectedSquareModel- the selected square model to updatemapManager- the map manager to track ornull
-
-
Method Detail
-
moveSquareUp
@ActionMethod public void moveSquareUp()
Action method for moving an arch up within its square.
-
doAction
protected boolean doAction(boolean performAction, @Nullable G gameObject)Description copied from class:AbstractMoveSquareActionExecutes the action.- Specified by:
doActionin classAbstractMoveSquareAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>- Parameters:
performAction- whether the action should be performedgameObject- the current game object ornullif none is selected- Returns:
- whether the action was or can be performed
-
-