com.realtime.crossfire.jxclient.server.crossfire
Interface CrossfireUpdateMapListener


public interface CrossfireUpdateMapListener

Interface for listeners interested in map related commands.


Method Summary
 void addAnimation(int animation, int flags, int[] faces)
          An "addanim" command has been received.
 void mapAnimation(int x, int y, int layer, int animationNum, int animationType)
          Part of "map2" parsing: set the animation of a cell.
 void mapAnimationSpeed(int x, int y, int layer, int animSpeed)
          Part of "map2" parsing: set the animation speed.
 void mapBegin()
          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 mapEnd()
          Parsing of "map2" has been finished.
 void mapFace(int x, int y, int layer, int faceNum)
          Part of "map2" parsing: set the face of a cell.
 void mapMagicMap(int x, int y, int color)
          Part of "magicmap" parsing: set the magic map color.
 void newMap(int mapWidth, int mapHeight)
          A "newmap" command has been received.
 void scroll(int dx, int dy)
          Part of "map2" parsing: scroll the map view.
 

Method Detail

addAnimation

void addAnimation(int animation,
                  int flags,
                  @NotNull
                  int[] faces)
An "addanim" command has been received.

Parameters:
animation - the animation ID
flags - the animation flags
faces - the faces list; must not be modified

mapAnimation

void mapAnimation(int x,
                  int y,
                  int layer,
                  int animationNum,
                  int animationType)
Part of "map2" parsing: set the animation of a cell.

Parameters:
x - the x-coordinate
y - the y-coordinate
layer - the layer
animationNum - the animation ID
animationType - the animation type

mapAnimationSpeed

void mapAnimationSpeed(int x,
                       int y,
                       int layer,
                       int animSpeed)
Part of "map2" parsing: set the animation speed.

Parameters:
x - the x-coordinate
y - the y-coordinate
layer - the layer
animSpeed - the animation speed

mapBegin

void mapBegin()
Parsing of a "map2" command has been started.


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

mapEnd

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


mapFace

void mapFace(int x,
             int y,
             int layer,
             int faceNum)
Part of "map2" parsing: set the face of a cell.

Parameters:
x - the x-coordinate
y - the y-coordinate
layer - the layer
faceNum - the face ID

mapMagicMap

void mapMagicMap(int x,
                 int y,
                 int color)
Part of "magicmap" parsing: set the magic map color.

Parameters:
x - the x-coordinate
y - the y-coordinate
color - the color

newMap

void newMap(int mapWidth,
            int mapHeight)
A "newmap" command has been received.

Parameters:
mapWidth - the map width
mapHeight - the map height

scroll

void scroll(int dx,
            int dy)
Part of "map2" parsing: scroll the map view.

Parameters:
dx - the x-distance
dy - the y-distance