Gridarta Editor
net.sf.gridarta.action.SelectSquareAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference
+ Inheritance diagram for net.sf.gridarta.action.SelectSquareAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.action.SelectSquareAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

void selectSquare ()
 
void setAction (@NotNull final Action action, @NotNull final String name)
 

Protected Member Functions

void updateAction ()
 
- Protected Member Functions inherited from net.sf.gridarta.action.AbstractSelectionAction< G, A, R >
boolean doSelection (final boolean performAction, @NotNull final SelectionMode mode)
 

Private Member Functions

boolean doSelectSquare (final boolean performAction)
 

Private Attributes

Action action
 

Detailed Description

An EditorAction that toggles the current pre-selection in the selection.

Author
Andreas Kirschbaum

Definition at line 37 of file SelectSquareAction.java.

Member Function Documentation

◆ doSelectSquare()

boolean net.sf.gridarta.action.SelectSquareAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doSelectSquare ( final boolean  performAction)
private

Executes the action.

Parameters
performActionwhether the action should be performed
Returns
whether the action was or can be performed

Definition at line 65 of file SelectSquareAction.java.

References net.sf.gridarta.action.AbstractSelectionAction< G, A, R >.doSelection(), and net.sf.gridarta.model.mapgrid.SelectionMode.FLIP.

Referenced by net.sf.gridarta.action.SelectSquareAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.selectSquare(), and net.sf.gridarta.action.SelectSquareAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ selectSquare()

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

Toggles the current pre-selection in the selection.

Definition at line 56 of file SelectSquareAction.java.

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

+ Here is the call graph for this function:

◆ setAction()

void net.sf.gridarta.action.SelectSquareAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction ( @NotNull final Action  action,
@NotNull final String  name 
)

◆ updateAction()

Member Data Documentation

◆ action


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