java.lang.Object
com.realtime.crossfire.jxclient.animations.Animation

public class Animation extends Object
Manages animations received from the server. Animations are uniquely identified by an animation id. Each animation consists of a list of faces.
  • Constructor Details

    • Animation

      public Animation(int animationId, int @NotNull [] faces)
      Creates a new instance.
      Parameters:
      animationId - the animation ID
      faces - the faces list of the animation
  • Method Details

    • getAnimationId

      public int getAnimationId()
      Returns the animation ID.
      Returns:
      the animation ID
    • getFaces

      public int getFaces()
      Returns the number of faces of this animation.
      Returns:
      the number of faces
    • getFace

      public int getFace(int index)
      Returns one face of this animation.
      Parameters:
      index - the face index
      Returns:
      the face