Interface CrossfireUpdateMapListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
MapUpdaterState

public interface CrossfireUpdateMapListener extends EventListener
Interface for listeners interested in map related commands.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    magicMap(int x, int y, byte @NotNull [] @NotNull [] data)
    Part of "magicmap" parsing: set the magic map color.
    void
    mapAnimation(@NotNull Location location, int animationNum, int animationType)
    Part of "map2" parsing: set the animation of a cell.
    void
    mapAnimationSpeed(@NotNull Location location, int animationSpeed)
    Part of "map2" parsing: set the animation speed.
    @NotNull Object
    Parsing of a "map2" command has been started.
    void
    mapClear(int x, int y)
    Part of "map2" parsing: clear a cell.
    void
    mapDarkness(int x, int y, int darkness)
    Part of "map2" parsing: change the darkness of a cell.
    void
    Parsing of "map2" has been finished.
    void
    mapFace(@NotNull Location location, int faceNum)
    Part of "map2" parsing: set the face of a cell.
    void
    mapScroll(int dx, int dy)
    Part of "map2" parsing: scroll the map view.
    void
    mapSmooth(@NotNull Location location, int smooth)
    Part of "map2" parsing: set the smooth level.
    void
    newMap(int mapWidth, int mapHeight)
    A "newmap" command has been received.
  • Method Details

    • newMap

      void newMap(int mapWidth, int mapHeight)
      A "newmap" command has been received.
      Parameters:
      mapWidth - the map width
      mapHeight - the map height
    • mapBegin

      @NotNull @NotNull Object mapBegin()
      Parsing of a "map2" command has been started.
      Returns:
      the synchronization object which must be synchronized while calling any other function (except newMap())
    • mapClear

      void mapClear(int x, int y)
      Part of "map2" parsing: clear a cell.
      Parameters:
      x - the x-coordinate
      y - the y-coordinate
    • mapDarkness

      void mapDarkness(int x, int y, int darkness)
      Part of "map2" parsing: change the darkness of a cell.
      Parameters:
      x - the x-coordinate
      y - the y-coordinate
      darkness - the darkness value
    • mapFace

      void mapFace(@NotNull @NotNull Location location, int faceNum)
      Part of "map2" parsing: set the face of a cell.
      Parameters:
      location - the location
      faceNum - the face ID
    • mapAnimation

      void mapAnimation(@NotNull @NotNull Location location, int animationNum, int animationType)
      Part of "map2" parsing: set the animation of a cell.
      Parameters:
      location - the location
      animationNum - the animation ID
      animationType - the animation type
    • mapAnimationSpeed

      void mapAnimationSpeed(@NotNull @NotNull Location location, int animationSpeed)
      Part of "map2" parsing: set the animation speed.
      Parameters:
      location - the location
      animationSpeed - the animation speed
    • mapSmooth

      void mapSmooth(@NotNull @NotNull Location location, int smooth)
      Part of "map2" parsing: set the smooth level.
      Parameters:
      location - the location
      smooth - the smooth value
    • mapScroll

      void mapScroll(int dx, int dy)
      Part of "map2" parsing: scroll the map view.
      Parameters:
      dx - the x-distance
      dy - the y-distance
    • magicMap

      void magicMap(int x, int y, byte @NotNull [] @NotNull [] data)
      Part of "magicmap" parsing: set the magic map color.
      Parameters:
      x - the x-coordinate
      y - the y-coordinate
      data - the magic map data (y, x); must not be changed
    • mapEnd

      void mapEnd()
      Parsing of "map2" has been finished.