Gridarta Editor
net.sf.gridarta.action.MoveSquarePrevAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

An net.sf.gridarta.utils.EditorAction that selects the previous game object in the SelectedSquareModel. More...

+ Inheritance diagram for net.sf.gridarta.action.MoveSquarePrevAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.action.MoveSquarePrevAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

void moveSquarePrev ()
 Action method that selects the previous game object. More...
 
 MoveSquarePrevAction (@NotNull final SelectedSquareModel< G, A, R > selectedSquareModel, @Nullable final MapManager< G, A, R > mapManager)
 Creates a new instance. More...
 
- Public Member Functions inherited from net.sf.gridarta.action.AbstractMoveSquareAction< G, A, R >
boolean doAction (final boolean performAction)
 Executes the action. More...
 
void setAction ( @NotNull final Action action, @NotNull final String name)
 Sets the Action instance for this editor action. More...
 

Protected Member Functions

boolean doAction (final boolean performAction, @Nullable final G gameObject)
 
- Protected Member Functions inherited from net.sf.gridarta.action.AbstractMoveSquareAction< G, A, R >
 AbstractMoveSquareAction ( @NotNull final SelectedSquareModel< G, A, R > selectedSquareModel, @Nullable final MapManager< G, A, R > mapManager)
 Creates a new instance. More...
 
abstract boolean doAction (boolean performAction, @Nullable G gameObject)
 Executes the action. More...
 

Private Attributes

final SelectedSquareModel< G, A, R > selectedSquareModel
 The SelectedSquareModel that is updated. More...
 

Detailed Description

An net.sf.gridarta.utils.EditorAction that selects the previous game object in the SelectedSquareModel.

Author
Andreas Kirschbaum

Definition at line 36 of file MoveSquarePrevAction.java.

Constructor & Destructor Documentation

◆ MoveSquarePrevAction()

net.sf.gridarta.action.MoveSquarePrevAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.MoveSquarePrevAction ( @NotNull final SelectedSquareModel< G, A, R >  selectedSquareModel,
@Nullable final MapManager< G, A, R >  mapManager 
)

Creates a new instance.

Parameters
selectedSquareModelthe selected square model to update
mapManagerthe map manager to track or
null

Definition at line 49 of file MoveSquarePrevAction.java.

References net.sf.gridarta.action.MoveSquarePrevAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.selectedSquareModel.

Member Function Documentation

◆ doAction()

boolean net.sf.gridarta.action.MoveSquarePrevAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction ( final boolean  performAction,
@Nullable final G  gameObject 
)
protected

◆ moveSquarePrev()

void net.sf.gridarta.action.MoveSquarePrevAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.moveSquarePrev ( )

Action method that selects the previous game object.

Definition at line 58 of file MoveSquarePrevAction.java.

References net.sf.gridarta.action.MoveSquarePrevAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction().

+ Here is the call graph for this function:

Member Data Documentation

◆ selectedSquareModel


The documentation for this class was generated from the following file: