public class MoveSquareBottomAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractMoveSquareAction<G,A,R>
EditorAction that moves the selected game
object in the SelectedSquareModel to the bottom.| Constructor and Description |
|---|
MoveSquareBottomAction(@NotNull SelectedSquareModel<G,A,R> selectedSquareModel,
@Nullable MapManager<G,A,R> mapManager)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doAction(boolean performAction,
G gameObject)
Executes the action.
|
void |
moveSquareBottom()
Action method that moves the selected game object to the bottom.
|
doAction, setActionpublic MoveSquareBottomAction(@NotNull
@NotNull SelectedSquareModel<G,A,R> selectedSquareModel,
@Nullable
@Nullable MapManager<G,A,R> mapManager)
selectedSquareModel - the selected square model to updatemapManager - the map manager to track or null@ActionMethod public void moveSquareBottom()
protected boolean doAction(boolean performAction,
@Nullable
G gameObject)
AbstractMoveSquareActiondoAction in class AbstractMoveSquareAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>performAction - whether the action should be performedgameObject - the current game object or null if none is
selected