Gridarta Editor
net.sf.gridarta.action.MoveSquareEnvAction< 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 moves the selected game object in the SelectedSquareModel to its environment. More...

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

Public Member Functions

void moveSquareEnv ()
 Action method that moves the selected game object to its environment. More...
 
 MoveSquareEnvAction (@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 moves the selected game object in the SelectedSquareModel to its environment.

Author
Andreas Kirschbaum

Definition at line 39 of file MoveSquareEnvAction.java.

Constructor & Destructor Documentation

◆ MoveSquareEnvAction()

net.sf.gridarta.action.MoveSquareEnvAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.MoveSquareEnvAction ( @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 52 of file MoveSquareEnvAction.java.

References net.sf.gridarta.action.MoveSquareEnvAction< 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.MoveSquareEnvAction< 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

◆ moveSquareEnv()

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

Action method that moves the selected game object to its environment.

Definition at line 61 of file MoveSquareEnvAction.java.

References net.sf.gridarta.action.MoveSquareEnvAction< 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: