Class AnimationMap

java.lang.Object
com.realtime.crossfire.jxclient.map.AnimationMap

public class AnimationMap extends Object
Maintains AnimationState instances for map locations.
  • 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 new AnimationState to a Location. If the location was not empty, the previous animation state is freed.
      Parameters:
      location - the location to add to
      animationState - the animation state to add
    • remove

      public void remove(@NotNull @NotNull Location location)
      Clears a Location.
      Parameters:
      location - the location to clear
    • updateSpeed

      public void updateSpeed(@NotNull @NotNull Location location, int speed)
      Updates the animation speed value of a Location.
      Parameters:
      location - the location to update
      speed - 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 scroll
      dy - the y distance to scroll
      width - the map width
      height - the map height