Class PositionChangeMulticaster

java.lang.Object
games.stendhal.client.listener.PositionChangeMulticaster
All Implemented Interfaces:
PositionChangeListener

public class PositionChangeMulticaster extends Object implements PositionChangeListener
A position change multicaster.
  • Constructor Details

    • PositionChangeMulticaster

      public PositionChangeMulticaster()
  • Method Details

    • add

      public void add(PositionChangeListener listener)
      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 interface PositionChangeListener
      Parameters:
      x - The new X coordinate (in world units).
      y - The new Y coordinate (in world units).