java.lang.Object com.realtime.crossfire.jxclient.animations.Animation
public class Animation
Manages animations received from the server. Animations are uniquely identified by an animation id. Each animation consists of a list of faces.
Field Summary | |
---|---|
private int |
animationId
The animation ID. |
private int[] |
faces
The faces list of the animation. |
private int |
flags
Flags for the animation; currently unused by the server. |
Constructor Summary | |
---|---|
Animation(int animationId,
int flags,
int[] faces)
Creates a new instance. |
Method Summary | |
---|---|
int |
getAnimationId()
Returns the animation ID. |
int |
getFace(int index)
Returns one face of this animation. |
int |
getFaces()
Returns the number of faces of this animation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final int animationId
@NotNull private final int[] faces
private final int flags
Constructor Detail |
---|
public Animation(int animationId, int flags, @NotNull int[] faces)
animationId
- the animation IDflags
- flags for the animation; currently unusedfaces
- the faces list of the animationMethod Detail |
---|
public int getAnimationId()
public int getFace(int index)
index
- the face index
public int getFaces()