Crossfire JXClient, Trunk
R20561
|
Manages animations received from the server. More...
Public Member Functions | |
Animation (final int animationId, final int flags, @NotNull final int[] faces) | |
Creates a new instance. More... | |
int | getAnimationId () |
Returns the animation ID. More... | |
int | getFace (final int index) |
Returns one face of this animation. More... | |
int | getFaces () |
Returns the number of faces of this animation. More... | |
Private Attributes | |
final int | animationId |
The animation ID. More... | |
final int [] | faces |
The faces list of the animation. More... | |
final int | flags |
Flags for the animation; currently unused by the server. More... | |
Manages animations received from the server.
Animations are uniquely identified by an animation id. Each animation consists of a list of faces.
Definition at line 31 of file Animation.java.
com.realtime.crossfire.jxclient.animations.Animation.Animation | ( | final int | animationId, |
final int | flags, | ||
@NotNull final int [] | faces | ||
) |
Creates a new instance.
animationId | the animation ID |
flags | flags for the animation; currently unused |
faces | the faces list of the animation |
Definition at line 55 of file Animation.java.
References com.realtime.crossfire.jxclient.animations.Animation.animationId, and com.realtime.crossfire.jxclient.animations.Animation.flags.
int com.realtime.crossfire.jxclient.animations.Animation.getAnimationId | ( | ) |
Returns the animation ID.
Definition at line 68 of file Animation.java.
References com.realtime.crossfire.jxclient.animations.Animation.animationId.
int com.realtime.crossfire.jxclient.animations.Animation.getFace | ( | final int | index | ) |
Returns one face of this animation.
index | the face index |
Definition at line 85 of file Animation.java.
Referenced by com.realtime.crossfire.jxclient.map.AnimationState.updateFace().
int com.realtime.crossfire.jxclient.animations.Animation.getFaces | ( | ) |
Returns the number of faces of this animation.
Definition at line 76 of file Animation.java.
Referenced by com.realtime.crossfire.jxclient.map.AnimationState.AnimationState(), and com.realtime.crossfire.jxclient.map.AnimationState.updateTickNo().
|
private |
The animation ID.
Definition at line 36 of file Animation.java.
Referenced by com.realtime.crossfire.jxclient.animations.Animation.Animation(), and com.realtime.crossfire.jxclient.animations.Animation.getAnimationId().
|
private |
The faces list of the animation.
Definition at line 47 of file Animation.java.
|
private |
Flags for the animation; currently unused by the server.
Definition at line 41 of file Animation.java.
Referenced by com.realtime.crossfire.jxclient.animations.Animation.Animation().