20 package net.sf.gridarta.action;
22 import java.awt.Point;
31 import org.jetbrains.annotations.NotNull;
32 import org.jetbrains.annotations.Nullable;
38 public abstract class AbstractMapCursorAction<G
extends GameObject<G, A, R>, A extends
MapArchObject<A>, R extends
Archetype<G, A, R>> implements
MapCursorListener<G, A, R>,
MapViewManagerListener<G, A, R> {
73 currentMapView = mapView;
MapCursor< G, A, R > getActiveMapCursor()
Return the map cursor of the current map view if it is active.
MapView< G, A, R > currentMapView
The active map view, or.
Graphical User Interface of Gridarta.
void mapCursorChangedGameObject(@Nullable final MapSquare< G, A, R > mapSquare, @Nullable final G gameObject)
NoopMethodInAbstractClass
void mapCursorChangedMode()
This event handler is called when MapCursor changes mode (drag, select).
MapCursor provides methods to move and drag on map.
void mapViewClosing(@NotNull final MapView< G, A, R > mapView)
NoopMethodInAbstractClass
abstract void updateAction()
Called whenever the current map cursor has changed.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
void mapViewCreated(@NotNull final MapView< G, A, R > mapView)
NoopMethodInAbstractClass
void mapCursorChangedPos(@NotNull final Point location)
This event handler is called when MapCursor has moved.
GameObjects are the objects based on Archetypes found on maps.
Interface for listeners interested in events related to MapViewManager instances. ...
Base classes for rendering maps.
void mapCursorChangedSize()
NoopMethodInAbstractClass
MapCursor< G, A, R > getMapCursor()
Returns the MapCursor of this view.
A map view consists of a map grid and a map cursor, and is attached to a map control.
Abstract base class for actions that have to track the current map cursor.
Interface for listeners listening to MapCursor related events.
MapView< G, A, R > getActiveMapView()
Return the current map view.
void activeMapViewChanged(@Nullable final MapView< G, A, R > mapView)
This event handler is called when the current map view has changed.
Interface for MapArchObjects.