Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.animations.Animation Class Reference

Manages animations received from the server. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.animations.Animation:

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...
 

Detailed Description

Manages animations received from the server.

Animations are uniquely identified by an animation id. Each animation consists of a list of faces.

Author
Andreas Kirschbaum

Definition at line 31 of file Animation.java.

Constructor & Destructor Documentation

◆ Animation()

com.realtime.crossfire.jxclient.animations.Animation.Animation ( final int  animationId,
final int  flags,
@NotNull final int []  faces 
)

Creates a new instance.

Parameters
animationIdthe animation ID
flagsflags for the animation; currently unused
facesthe 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.

Member Function Documentation

◆ getAnimationId()

int com.realtime.crossfire.jxclient.animations.Animation.getAnimationId ( )

Returns the animation ID.

Returns
the animation ID

Definition at line 68 of file Animation.java.

References com.realtime.crossfire.jxclient.animations.Animation.animationId.

◆ getFace()

int com.realtime.crossfire.jxclient.animations.Animation.getFace ( final int  index)

Returns one face of this animation.

Parameters
indexthe face index
Returns
the face

Definition at line 85 of file Animation.java.

Referenced by com.realtime.crossfire.jxclient.map.AnimationState.updateFace().

+ Here is the caller graph for this function:

◆ getFaces()

int com.realtime.crossfire.jxclient.animations.Animation.getFaces ( )

Returns the number of faces of this animation.

Returns
the number of faces

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().

+ Here is the caller graph for this function:

Member Data Documentation

◆ animationId

final int com.realtime.crossfire.jxclient.animations.Animation.animationId
private

◆ faces

final int [] com.realtime.crossfire.jxclient.animations.Animation.faces
private

The faces list of the animation.

Definition at line 47 of file Animation.java.

◆ flags

final int com.realtime.crossfire.jxclient.animations.Animation.flags
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().


The documentation for this class was generated from the following file: