Package net.sf.gridarta.action
Class AbstractSelectionAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.action.AbstractMapCursorAction<G,A,R>
-
- net.sf.gridarta.action.AbstractSelectionAction<G,A,R>
-
- All Implemented Interfaces:
java.util.EventListener,MapViewManagerListener<G,A,R>,MapCursorListener<G,A,R>
- Direct Known Subclasses:
AddToSelectionAction,SelectSquareAction,SubFromSelectionAction
public abstract class AbstractSelectionAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractMapCursorAction<G,A,R>
Abstract base class for actions that change the current selection.
-
-
Constructor Summary
Constructors Constructor Description AbstractSelectionAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoSelection(boolean performAction, @NotNull SelectionMode mode)Executes an action for changing the selection.-
Methods inherited from class net.sf.gridarta.action.AbstractMapCursorAction
activeMapViewChanged, getActiveMapCursor, getActiveMapView, mapCursorChangedGameObject, mapCursorChangedMode, mapCursorChangedPos, mapCursorChangedSize, mapViewClosing, mapViewCreated, updateAction
-
-
-
-
Method Detail
-
doSelection
protected boolean doSelection(boolean performAction, @NotNull @NotNull SelectionMode mode)Executes an action for changing the selection.- Parameters:
performAction- whether the action should be performedmode- the type of action to perform- Returns:
- whether the action was or can be performed
-
-