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
+ 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)
 
- Protected Member Functions inherited from net.sf.gridarta.action.AbstractMapCursorAction< G, A, R >
MapCursor< G, A, R > getActiveMapCursor ()
 
MapView< G, A, R > getActiveMapView ()
 
abstract void updateAction ()
 

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)
 
void mapCursorChangedGameObject ( @Nullable final MapSquare< G, A, R > mapSquare, @Nullable final G gameObject)
 
void mapCursorChangedMode ()
 
void mapCursorChangedPos ( @NotNull final Point location)
 
void mapCursorChangedSize ()
 
void mapViewClosing ( @NotNull final MapView< G, A, R > mapView)
 
void mapViewCreated ( @NotNull final MapView< G, A, R > mapView)
 

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: