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

Abstract base class for actions that change the current selection. More...

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

Protected Member Functions

boolean doSelection (final boolean performAction, @NotNull final SelectionMode mode)
 Executes an action for changing the selection. More...
 
- Protected Member Functions inherited from net.sf.gridarta.action.AbstractMapCursorAction< G, A, R >
MapCursor< G, A, R > getActiveMapCursor ()
 Return the map cursor of the current map view if it is active. More...
 
MapView< G, A, R > getActiveMapView ()
 Return the current map view. More...
 
abstract void updateAction ()
 Called whenever the current map cursor has changed. More...
 

Additional Inherited Members

- Public Member Functions inherited from net.sf.gridarta.action.AbstractMapCursorAction< G, A, R >
void activeMapViewChanged ( @Nullable final MapView< G, A, R > mapView)
 This event handler is called when the current map view has changed. More...
 
void mapCursorChangedGameObject ( @Nullable final MapSquare< G, A, R > mapSquare, @Nullable final G gameObject)
 NoopMethodInAbstractClass More...
 
void mapCursorChangedMode ()
 This event handler is called when MapCursor changes mode (drag, select). More...
 
void mapCursorChangedPos ( @NotNull final Point location)
 This event handler is called when MapCursor has moved. More...
 
void mapCursorChangedSize ()
 NoopMethodInAbstractClass More...
 
void mapViewClosing ( @NotNull final MapView< G, A, R > mapView)
 NoopMethodInAbstractClass More...
 
void mapViewCreated ( @NotNull final MapView< G, A, R > mapView)
 NoopMethodInAbstractClass More...
 

Detailed Description

Abstract base class for actions that change the current selection.

Author
Andreas Kirschbaum

Definition at line 33 of file AbstractSelectionAction.java.

Member Function Documentation

◆ doSelection()

boolean net.sf.gridarta.action.AbstractSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doSelection ( final boolean  performAction,
@NotNull final SelectionMode  mode 
)
protected

Executes an action for changing the selection.

Parameters
performActionwhether the action should be performed
modethe type of action to perform
Returns
whether the action was or can be performed

Definition at line 41 of file AbstractSelectionAction.java.


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