 |
Gridarta Editor
|
Go to the documentation of this file.
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> {
Base package of all Gridarta classes.
void mapViewCreated(@NotNull final MapView< G, A, R > mapView)
@noinspection NoopMethodInAbstractClass
daimonin editor devlib README txt This directory contains some files and libraries for development similar to indent for C http
Interface for listeners interested in events related to {} instances.
Reflects a game object (object on a map).
void activeMapViewChanged(@Nullable final MapView< G, A, R > mapView)
This event handler is called when the current map view has changed.
void mapCursorChangedGameObject(@Nullable final MapSquare< G, A, R > mapSquare, @Nullable final G gameObject)
@noinspection NoopMethodInAbstractClass
Interface for listeners listening to MapCursor related events.
Graphical User Interface of Gridarta.
MapCursor< G, A, R > getMapCursor()
Returns the MapCursor of this view.
MapView< G, A, R > getActiveMapView()
Return the current map view.
GameObjects are the objects based on Archetypes found on maps.
void mapCursorChangedSize()
@noinspection NoopMethodInAbstractClass
Interface for MapArchObjects.
A map view consists of a map grid and a map cursor, and is attached to a map control.
abstract void updateAction()
Called whenever the current map cursor has changed.
MapCursor provides methods to move and drag on map.
Abstract base class for actions that have to track the current map cursor.
MapCursor< G, A, R > getActiveMapCursor()
Return the map cursor of the current map view if it is active.
Base classes for rendering maps.
MapView< G, A, R > currentMapView
The active map view, or.
void mapCursorChangedPos(@NotNull final Point location)
This event handler is called when MapCursor has moved.
void mapViewClosing(@NotNull final MapView< G, A, R > mapView)
@noinspection NoopMethodInAbstractClass
void mapCursorChangedMode()
This event handler is called when MapCursor changes mode (drag, select).