public interface MapCursorListener<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.util.EventListener
MapCursor
related events.Modifier and Type | Method and Description |
---|---|
void |
mapCursorChangedGameObject(@Nullable MapSquare<G,A,R> mapSquare,
G gameObject)
Called whenever the selected game object has changed.
|
void |
mapCursorChangedMode()
This event handler is called when
MapCursor changes mode (drag,
select). |
void |
mapCursorChangedPos(@NotNull java.awt.Point location)
This event handler is called when
MapCursor has moved. |
void |
mapCursorChangedSize()
Called whenever the map cursor's map grid size has changed.
|
void mapCursorChangedPos(@NotNull @NotNull java.awt.Point location)
MapCursor
has moved.location
- the new locationvoid mapCursorChangedMode()
MapCursor
changes mode (drag,
select).void mapCursorChangedGameObject(@Nullable @Nullable MapSquare<G,A,R> mapSquare, @Nullable G gameObject)
mapCursorChangedPos(Point)
occurs
concurrently.mapSquare
- the newly selected map square or null
if no map
square is selectedgameObject
- the newly selected game object or null
if no
game object is selectedvoid mapCursorChangedSize()