Package games.stendhal.client.listener
Class PositionChangeMulticaster
java.lang.Object
games.stendhal.client.listener.PositionChangeMulticaster
- All Implemented Interfaces:
PositionChangeListener
A position change multicaster.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add(PositionChangeListener listener)
Add a position change listener.void
positionChanged(double x, double y)
Call position change event on all registered listeners.
-
Constructor Details
-
PositionChangeMulticaster
public PositionChangeMulticaster()
-
-
Method Details
-
add
Add a position change listener.- Parameters:
listener
- The listener.
-
positionChanged
public void positionChanged(double x, double y)Call position change event on all registered listeners.- Specified by:
positionChanged
in interfacePositionChangeListener
- Parameters:
x
- The new X coordinate (in world units).y
- The new Y coordinate (in world units).
-