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

Manages animations received from the server. More...

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

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, Animationanimations = new HashMap<>()
 All defined animations. More...
 
final GuiStateListener guiStateListener
 The GuiStateListener for detecting established or dropped connections. 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 37 of file Animations.java.

Constructor & Destructor Documentation

◆ Animations()

com.realtime.crossfire.jxclient.animations.Animations.Animations ( @Nullable final GuiStateManager  guiStateManager)

Creates a new instance.

Parameters
guiStateManagerthe gui state manager to watch;
null
to not watch

Definition at line 95 of file Animations.java.

References com.realtime.crossfire.jxclient.animations.Animations.guiStateListener.

Member Function Documentation

◆ addAnimation()

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

Defines a new animation.

Parameters
animationIdthe animation id
flagsflags for the animation; currently unused
facesthe faces list of the animation

Definition at line 107 of file Animations.java.

Referenced by com.realtime.crossfire.jxclient.map.MapUpdaterState.addAnimation().

+ Here is the caller graph for this function:

◆ get()

Animation com.realtime.crossfire.jxclient.animations.Animations.get ( final int  animationId)

Returns the animation for an animation id.

Parameters
animationIdthe animation id
Returns
the animation instance, or
null
if the animation id does not exist

Definition at line 125 of file Animations.java.

Referenced by com.realtime.crossfire.jxclient.map.MapUpdaterState.mapAnimation().

+ Here is the caller graph for this function:

Member Data Documentation

◆ animations

final Map<Integer, Animation> com.realtime.crossfire.jxclient.animations.Animations.animations = new HashMap<>()
private

All defined animations.

Maps animation id to animation instance.

Definition at line 43 of file Animations.java.

◆ guiStateListener

final GuiStateListener com.realtime.crossfire.jxclient.animations.Animations.guiStateListener
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().


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