Interface CrossfireUpdateMapListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
MapUpdaterState
Interface for listeners interested in map related commands.
-
Method Summary
Modifier and TypeMethodDescriptionvoidmagicMap(int x, int y, byte @NotNull [] @NotNull [] data) Part of "magicmap" parsing: set the magic map color.voidmapAnimation(@NotNull Location location, int animationNum, int animationType) Part of "map2" parsing: set the animation of a cell.voidmapAnimationSpeed(@NotNull Location location, int animationSpeed) Part of "map2" parsing: set the animation speed.@NotNull ObjectmapBegin()Parsing of a "map2" command has been started.voidmapClear(int x, int y) Part of "map2" parsing: clear a cell.voidmapDarkness(int x, int y, int darkness) Part of "map2" parsing: change the darkness of a cell.voidmapEnd()Parsing of "map2" has been finished.voidPart of "map2" parsing: set the face of a cell.voidmapScroll(int dx, int dy) Part of "map2" parsing: scroll the map view.voidPart of "map2" parsing: set the smooth level.voidnewMap(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 widthmapHeight- the map height
-
mapBegin
Parsing of a "map2" command has been started.- Returns:
- the synchronization object which must be
synchronizedwhile calling any other function (exceptnewMap())
-
mapClear
void mapClear(int x, int y) Part of "map2" parsing: clear a cell.- Parameters:
x- the x-coordinatey- 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-coordinatey- the y-coordinatedarkness- the darkness value
-
mapFace
Part of "map2" parsing: set the face of a cell.- Parameters:
location- the locationfaceNum- the face ID
-
mapAnimation
Part of "map2" parsing: set the animation of a cell.- Parameters:
location- the locationanimationNum- the animation IDanimationType- the animation type
-
mapAnimationSpeed
Part of "map2" parsing: set the animation speed.- Parameters:
location- the locationanimationSpeed- the animation speed
-
mapSmooth
Part of "map2" parsing: set the smooth level.- Parameters:
location- the locationsmooth- the smooth value
-
mapScroll
void mapScroll(int dx, int dy) Part of "map2" parsing: scroll the map view.- Parameters:
dx- the x-distancedy- 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-coordinatey- the y-coordinatedata- the magic map data (y, x); must not be changed
-
mapEnd
void mapEnd()Parsing of "map2" has been finished.
-