Crossfire JXClient, Trunk
Public Member Functions | List of all members
com.realtime.crossfire.jxclient.server.crossfire.CrossfireUpdateMapListener Interface Reference
Inheritance diagram for com.realtime.crossfire.jxclient.server.crossfire.CrossfireUpdateMapListener:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.server.crossfire.CrossfireUpdateMapListener:
Collaboration graph

Public Member Functions

void magicMap (int x, int y, byte @NotNull[] @NotNull[] data)
 
void mapAnimation (@NotNull Location location, int animationNum, int animationType)
 
void mapAnimationSpeed (@NotNull Location location, int animationSpeed)
 
Object mapBegin ()
 
void mapClear (int x, int y)
 
void mapDarkness (int x, int y, int darkness)
 
void mapEnd ()
 
void mapFace (@NotNull Location location, int faceNum)
 
void mapScroll (int dx, int dy)
 
void mapSmooth (@NotNull Location location, int smooth)
 
void newMap (int mapWidth, int mapHeight)
 

Detailed Description

Interface for listeners interested in map related commands.

Author
Andreas Kirschbaum

Definition at line 33 of file CrossfireUpdateMapListener.java.

Member Function Documentation

◆ magicMap()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireUpdateMapListener.magicMap ( int  x,
int  y,
byte @NotNull @[]NotNull[]  data 
)

Part of "magicmap" parsing: set the magic map color.

Parameters
xthe x-coordinate
ythe y-coordinate
datathe magic map data (y, x); must not be changed

Implemented in com.realtime.crossfire.jxclient.map.MapUpdaterState, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireUpdateMapListener.

◆ mapAnimation()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireUpdateMapListener.mapAnimation ( @NotNull Location  location,
int  animationNum,
int  animationType 
)

Part of "map2" parsing: set the animation of a cell.

Parameters
locationthe location
animationNumthe animation ID
animationTypethe animation type

Implemented in com.realtime.crossfire.jxclient.map.MapUpdaterState, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireUpdateMapListener.

◆ mapAnimationSpeed()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireUpdateMapListener.mapAnimationSpeed ( @NotNull Location  location,
int  animationSpeed 
)

Part of "map2" parsing: set the animation speed.

Parameters
locationthe location
animationSpeedthe animation speed

Implemented in com.realtime.crossfire.jxclient.map.MapUpdaterState, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireUpdateMapListener.

◆ mapBegin()

Object com.realtime.crossfire.jxclient.server.crossfire.CrossfireUpdateMapListener.mapBegin ( )

Parsing of a "map2" command has been started.

Returns
the synchronization object which must be
synchronized
while calling any other function (except )

Implemented in com.realtime.crossfire.jxclient.map.MapUpdaterState, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireUpdateMapListener.

Referenced by com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection.processMap2().

Here is the caller graph for this function:

◆ mapClear()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireUpdateMapListener.mapClear ( int  x,
int  y 
)

Part of "map2" parsing: clear a cell.

Parameters
xthe x-coordinate
ythe y-coordinate

Implemented in com.realtime.crossfire.jxclient.map.MapUpdaterState, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireUpdateMapListener.

◆ mapDarkness()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireUpdateMapListener.mapDarkness ( int  x,
int  y,
int  darkness 
)

Part of "map2" parsing: change the darkness of a cell.

Parameters
xthe x-coordinate
ythe y-coordinate
darknessthe darkness value

Implemented in com.realtime.crossfire.jxclient.map.MapUpdaterState, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireUpdateMapListener.

◆ mapEnd()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireUpdateMapListener.mapEnd ( )

◆ mapFace()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireUpdateMapListener.mapFace ( @NotNull Location  location,
int  faceNum 
)

Part of "map2" parsing: set the face of a cell.

Parameters
locationthe location
faceNumthe face ID

Implemented in com.realtime.crossfire.jxclient.map.MapUpdaterState, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireUpdateMapListener.

◆ mapScroll()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireUpdateMapListener.mapScroll ( int  dx,
int  dy 
)

Part of "map2" parsing: scroll the map view.

Parameters
dxthe x-distance
dythe y-distance

Implemented in com.realtime.crossfire.jxclient.map.MapUpdaterState, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireUpdateMapListener.

Referenced by com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection.processMap2().

Here is the caller graph for this function:

◆ mapSmooth()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireUpdateMapListener.mapSmooth ( @NotNull Location  location,
int  smooth 
)

Part of "map2" parsing: set the smooth level.

Parameters
locationthe location
smooththe smooth value

Implemented in com.realtime.crossfire.jxclient.map.MapUpdaterState, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireUpdateMapListener.

◆ newMap()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireUpdateMapListener.newMap ( int  mapWidth,
int  mapHeight 
)

A "newmap" command has been received.

Parameters
mapWidththe map width
mapHeightthe map height

Implemented in com.realtime.crossfire.jxclient.map.MapUpdaterState, and com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireUpdateMapListener.


The documentation for this interface was generated from the following file:
com.realtime.crossfire.jxclient.server.crossfire.CrossfireUpdateMapListener.newMap
void newMap(int mapWidth, int mapHeight)