public interface CrossfireUpdateMapListener
extends java.util.EventListener
Modifier and Type | Method and Description |
---|---|
void |
magicMap(int x,
int y,
byte[][] 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 java.lang.Object |
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(@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.
|
void newMap(int mapWidth, int mapHeight)
mapWidth
- the map widthmapHeight
- the map height@NotNull @NotNull java.lang.Object mapBegin()
synchronized
while calling any other function (except newMap()
)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 mapFace(@NotNull @NotNull Location location, int faceNum)
location
- the locationfaceNum
- the face IDvoid mapAnimation(@NotNull @NotNull Location location, int animationNum, int animationType)
location
- the locationanimationNum
- the animation IDanimationType
- the animation typevoid mapAnimationSpeed(@NotNull @NotNull Location location, int animationSpeed)
location
- the locationanimationSpeed
- the animation speedvoid mapSmooth(@NotNull @NotNull Location location, int smooth)
location
- the locationsmooth
- the smooth valuevoid mapScroll(int dx, int dy)
dx
- the x-distancedy
- the y-distancevoid magicMap(int x, int y, byte[][] data)
x
- the x-coordinatey
- the y-coordinatedata
- the magic map data (y, x); must not be changedvoid mapEnd()