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 |
---|
void addAnimation(int animation, int flags, @NotNull int[] faces)
animation
- the animation IDflags
- the animation flagsfaces
- the faces list; must not be modifiedvoid mapAnimation(int x, int y, int layer, int animationNum, int animationType)
x
- the x-coordinatey
- the y-coordinatelayer
- the layeranimationNum
- the animation IDanimationType
- the animation typevoid mapAnimationSpeed(int x, int y, int layer, int animSpeed)
x
- the x-coordinatey
- the y-coordinatelayer
- the layeranimSpeed
- the animation speedvoid mapBegin()
void mapClear(int x, int y)
x
- the x-coordinatey
- the y-coordinatevoid mapDarkness(int x, int y, int darkness)
x
- the x-coordinatey
- the y-coordinatedarkness
- the darkness valuevoid mapEnd()
void mapFace(int x, int y, int layer, int faceNum)
x
- the x-coordinatey
- the y-coordinatelayer
- the layerfaceNum
- the face IDvoid mapMagicMap(int x, int y, int color)
x
- the x-coordinatey
- the y-coordinatecolor
- the colorvoid newMap(int mapWidth, int mapHeight)
mapWidth
- the map widthmapHeight
- the map heightvoid scroll(int dx, int dy)
dx
- the x-distancedy
- the y-distance