net.sf.gridarta.model.mapcursor
private static class MapCursorTest.TestMapCursorListener extends Object implements MapCursorListener<TestGameObject,TestMapArchObject,TestArchetype>
MapCursorListener
that counts the number of event callbacks.Modifier and Type | Field and Description |
---|---|
private int |
changedModeCounter
The number of calls to
mapCursorChangedMode() . |
private int |
changedPosCounter
The number of calls to
mapCursorChangedPos(Point) . |
Modifier | Constructor and Description |
---|---|
private |
MapCursorTest.TestMapCursorListener() |
Modifier and Type | Method and Description |
---|---|
void |
mapCursorChangedGameObject(MapSquare<TestGameObject,TestMapArchObject,TestArchetype> mapSquare,
TestGameObject gameObject)
Called whenever the selected game object has changed.
|
void |
mapCursorChangedMode()
This event handler is called when
MapCursor changes mode (drag,
select). |
void |
mapCursorChangedPos(Point location)
This event handler is called when
MapCursor has moved. |
void |
mapCursorChangedSize()
Called whenever the map cursor's map grid size has changed.
|
private int changedPosCounter
mapCursorChangedPos(Point)
.private int changedModeCounter
mapCursorChangedMode()
.private MapCursorTest.TestMapCursorListener()
public void mapCursorChangedPos(@NotNull Point location)
MapCursorListener
MapCursor
has moved.mapCursorChangedPos
in interface MapCursorListener<TestGameObject,TestMapArchObject,TestArchetype>
location
- the new locationpublic void mapCursorChangedMode()
MapCursorListener
MapCursor
changes mode (drag,
select).mapCursorChangedMode
in interface MapCursorListener<TestGameObject,TestMapArchObject,TestArchetype>
public void mapCursorChangedGameObject(@Nullable MapSquare<TestGameObject,TestMapArchObject,TestArchetype> mapSquare, @Nullable TestGameObject gameObject)
MapCursorListener
MapCursorListener.mapCursorChangedPos(Point)
occurs
concurrently.mapCursorChangedGameObject
in interface MapCursorListener<TestGameObject,TestMapArchObject,TestArchetype>
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 selectedpublic void mapCursorChangedSize()
MapCursorListener
mapCursorChangedSize
in interface MapCursorListener<TestGameObject,TestMapArchObject,TestArchetype>
Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.