Class Animation
java.lang.Object
com.realtime.crossfire.jxclient.animations.Animation
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 IDfaces
- 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
-