Class Animation
- java.lang.Object
-
- com.realtime.crossfire.jxclient.animations.Animation
-
public class Animation extends java.lang.ObjectManages animations received from the server. Animations are uniquely identified by an animation id. Each animation consists of a list of faces.
-
-
Constructor Summary
Constructors Constructor Description Animation(int animationId, int flags, int @NotNull [] faces)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAnimationId()Returns the animation ID.intgetFace(int index)Returns one face of this animation.intgetFaces()Returns the number of faces of this animation.
-
-
-
Method Detail
-
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
-
-