Class ActiveEntity

java.lang.Object
games.stendhal.client.entity.Entity
games.stendhal.client.entity.ActiveEntity
All Implemented Interfaces:
IEntity, RPObjectChangeListener
Direct Known Subclasses:
Food, RPEntity

public abstract class ActiveEntity extends Entity
An entity that has movement and direction.
  • Field Details

    • PROP_DIRECTION

      public static final games.stendhal.client.entity.Property PROP_DIRECTION
      Direction property.
    • PROP_SPEED

      public static final games.stendhal.client.entity.Property PROP_SPEED
      Speed property.
  • Method Details

    • getDirection

      public Direction getDirection()
      Get the direction.
      Returns:
      The direction.
    • stopped

      public boolean stopped()
      Determine if this entity is not moving.
      Returns:
      true if not moving.
    • initialize

      public void initialize(RPObject base)
      Initialize this entity for an object.
      Specified by:
      initialize in interface IEntity
      Overrides:
      initialize in class Entity
      Parameters:
      base - The object.
      See Also:
      Entity.release()
    • update

      public void update(int delta)
      Update cycle.
      Specified by:
      update in interface IEntity
      Overrides:
      update in class Entity
      Parameters:
      delta - The time (in ms) since last call.
    • processPositioning

      protected void processPositioning(RPObject base, RPObject diff)
      Process attribute changes that may affect positioning. This is needed because different entities may want to process coordinate changes more gracefully.
      Overrides:
      processPositioning in class Entity
      Parameters:
      base - The previous values.
      diff - The changes.
    • isFlying

      public boolean isFlying()
      Checks if the entity is a flying entity.
      Returns: