Crossfire JXClient, Trunk
R20561
|
Manages animations received from the server. More...
Public Member Functions | |
void | addAnimation (final int animationId, final int flags, @NotNull final int[] faces) |
Defines a new animation. More... | |
Animations (@Nullable final GuiStateManager guiStateManager) | |
Creates a new instance. More... | |
Animation | get (final int animationId) |
Returns the animation for an animation id. More... | |
Private Attributes | |
final Map< Integer, Animation > | animations = new HashMap<>() |
All defined animations. More... | |
final GuiStateListener | guiStateListener |
The GuiStateListener for detecting established or dropped connections. 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 37 of file Animations.java.
com.realtime.crossfire.jxclient.animations.Animations.Animations | ( | @Nullable final GuiStateManager | guiStateManager | ) |
Creates a new instance.
guiStateManager | the gui state manager to watch; null |
Definition at line 95 of file Animations.java.
References com.realtime.crossfire.jxclient.animations.Animations.guiStateListener.
void com.realtime.crossfire.jxclient.animations.Animations.addAnimation | ( | final int | animationId, |
final int | flags, | ||
@NotNull final int [] | faces | ||
) |
Defines a new animation.
animationId | the animation id |
flags | flags for the animation; currently unused |
faces | the faces list of the animation |
Definition at line 107 of file Animations.java.
Referenced by com.realtime.crossfire.jxclient.map.MapUpdaterState.addAnimation().
Animation com.realtime.crossfire.jxclient.animations.Animations.get | ( | final int | animationId | ) |
Returns the animation for an animation id.
animationId | the animation id |
Definition at line 125 of file Animations.java.
Referenced by com.realtime.crossfire.jxclient.map.MapUpdaterState.mapAnimation().
|
private |
All defined animations.
Maps animation id to animation instance.
Definition at line 43 of file Animations.java.
|
private |
The GuiStateListener for detecting established or dropped connections.
Definition at line 51 of file Animations.java.
Referenced by com.realtime.crossfire.jxclient.animations.Animations.Animations().