public class AnimationMap
extends java.lang.Object
AnimationState instances for map locations.| Constructor and Description |
|---|
AnimationMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(@NotNull com.realtime.crossfire.jxclient.map.Location location,
@NotNull AnimationState animationState)
Adds a new
AnimationState to a Location. |
void |
clear()
Forgets all state.
|
void |
remove(@NotNull com.realtime.crossfire.jxclient.map.Location location)
Clears a
Location. |
void |
scroll(int dx,
int dy,
int width,
int height)
Scrolls all locations.
|
void |
updateSpeed(@NotNull com.realtime.crossfire.jxclient.map.Location location,
int speed)
Updates the animation speed value of a
Location. |
public void clear()
public void add(@NotNull
@NotNull com.realtime.crossfire.jxclient.map.Location location,
@NotNull
@NotNull AnimationState animationState)
AnimationState to a Location. If the location
was not empty, the previous animation state is freed.location - the location to add toanimationState - the animation state to addpublic void remove(@NotNull
@NotNull com.realtime.crossfire.jxclient.map.Location location)
Location.location - the location to clearpublic void updateSpeed(@NotNull
@NotNull com.realtime.crossfire.jxclient.map.Location location,
int speed)
Location.location - the location to updatespeed - the new animation speedpublic void scroll(int dx,
int dy,
int width,
int height)
dx - the x distance to scrolldy - the y distance to scrollwidth - the map widthheight - the map height