Class AnimationMap
java.lang.Object
com.realtime.crossfire.jxclient.map.AnimationMap
Maintains
AnimationState instances for map
locations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(@NotNull Location location, @NotNull AnimationState animationState) Adds a newAnimationStateto aLocation.voidclear()Forgets all state.voidClears aLocation.voidscroll(int dx, int dy, int width, int height) Scrolls all locations.voidupdateSpeed(@NotNull Location location, int speed) Updates the animation speed value of aLocation.
-
Constructor Details
-
AnimationMap
public AnimationMap()
-
-
Method Details
-
clear
public void clear()Forgets all state. -
add
public void add(@NotNull @NotNull Location location, @NotNull @NotNull AnimationState animationState) Adds a newAnimationStateto aLocation. If the location was not empty, the previous animation state is freed.- Parameters:
location- the location to add toanimationState- the animation state to add
-
remove
Clears aLocation.- Parameters:
location- the location to clear
-
updateSpeed
Updates the animation speed value of aLocation.- Parameters:
location- the location to updatespeed- the new animation speed
-
scroll
public void scroll(int dx, int dy, int width, int height) Scrolls all locations.- Parameters:
dx- the x distance to scrolldy- the y distance to scrollwidth- the map widthheight- the map height
-