Crossfire JXClient, Trunk
|
Public Member Functions | |
void | add (final int tag, @NotNull final AnimationState animationState) |
Collection< AnimationState > | getAllAnimationStates () |
void | remove (final int tag) |
void | updateSpeed (final int tag, final int speed) |
Static Private Member Functions | |
static void | freeAnimationState (@Nullable final AnimationState animationState, final int tag) |
Private Attributes | |
final Map< Integer, AnimationState > | animations = new HashMap<>() |
Maintains AnimationState instances for item tag values.
Definition at line 36 of file AnimationSet.java.
void com.realtime.crossfire.jxclient.map.AnimationSet.add | ( | final int | tag, |
@NotNull final AnimationState | animationState | ||
) |
Adds a new AnimationState for an item tag. If the location was not empty, the previous animation state is freed.
tag | the item tag to add to |
animationState | the animation state to add |
Definition at line 51 of file AnimationSet.java.
References com.realtime.crossfire.jxclient.map.AnimationSet.animations, and com.realtime.crossfire.jxclient.map.AnimationSet.freeAnimationState().
Referenced by com.realtime.crossfire.jxclient.map.CfAnimations.tagAdd().
|
staticprivate |
Calls AnimationState#free(Location).
animationState | the instance to call free()
null
|
tag | the item tag to pass |
Definition at line 95 of file AnimationSet.java.
Referenced by com.realtime.crossfire.jxclient.map.AnimationSet.add(), and com.realtime.crossfire.jxclient.map.AnimationSet.remove().
Collection<AnimationState> com.realtime.crossfire.jxclient.map.AnimationSet.getAllAnimationStates | ( | ) |
Returns all AnimationState instances.
Definition at line 85 of file AnimationSet.java.
References com.realtime.crossfire.jxclient.map.AnimationSet.animations.
Referenced by com.realtime.crossfire.jxclient.map.CfAnimations.mapClear().
void com.realtime.crossfire.jxclient.map.AnimationSet.remove | ( | final int | tag | ) |
Clears an item tag.
tag | the item tag to clear |
Definition at line 60 of file AnimationSet.java.
References com.realtime.crossfire.jxclient.map.AnimationSet.animations, and com.realtime.crossfire.jxclient.map.AnimationSet.freeAnimationState().
Referenced by com.realtime.crossfire.jxclient.map.CfAnimations.tagRemove().
void com.realtime.crossfire.jxclient.map.AnimationSet.updateSpeed | ( | final int | tag, |
final int | speed | ||
) |
Updates the animation speed value of an item tag.
tag | the item tag to update |
speed | the new animation speed |
Definition at line 69 of file AnimationSet.java.
References com.realtime.crossfire.jxclient.map.AnimationSet.animations, and com.realtime.crossfire.jxclient.map.AnimationState.setSpeed().
|
private |
The active AnimationState instances. Maps item tag to
instance.
Definition at line 43 of file AnimationSet.java.
Referenced by com.realtime.crossfire.jxclient.map.AnimationSet.add(), com.realtime.crossfire.jxclient.map.AnimationSet.getAllAnimationStates(), com.realtime.crossfire.jxclient.map.AnimationSet.remove(), and com.realtime.crossfire.jxclient.map.AnimationSet.updateSpeed().