java.lang.Objectcom.realtime.crossfire.jxclient.animations.Animations
public class Animations
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 java.util.Map<java.lang.Integer,Animation> |
animations
All defined animations. |
private GuiStateListener |
guiStateListener
The GuiStateListener for detecting established or dropped
connections. |
| Constructor Summary | |
|---|---|
Animations(GuiStateManager guiStateManager)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
addAnimation(int animationId,
int flags,
int[] faces)
Defines a new animation. |
Animation |
get(int animationId)
Returns the animation for an animation id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull private final java.util.Map<java.lang.Integer,Animation> animations
@NotNull private final GuiStateListener guiStateListener
GuiStateListener for detecting established or dropped
connections.
| Constructor Detail |
|---|
public Animations(@Nullable
GuiStateManager guiStateManager)
guiStateManager - the gui state manager to watch; null
to not watch| Method Detail |
|---|
public void addAnimation(int animationId,
int flags,
@NotNull
int[] faces)
animationId - the animation idflags - flags for the animation; currently unusedfaces - the faces list of the animation@Nullable public Animation get(int animationId)
animationId - the animation id
null if the animation id
does not exist