Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.faces.SmoothFaces Class Reference

Maintains smoothing information received from the Crossfire server. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.faces.SmoothFaces:

Public Member Functions

int getSmoothFace (final int face)
 Returns the smoothing face associated with a given face. More...
 
void updateSmoothFace (final int face, final int smoothFace)
 Updates smooth face information. More...
 

Private Attributes

final Map< Integer, Integer > smoothFaces = new HashMap<>()
 All known smoothing mappings. More...
 

Detailed Description

Maintains smoothing information received from the Crossfire server.

Author
Andreas Kirschbaum

Definition at line 32 of file SmoothFaces.java.

Member Function Documentation

◆ getSmoothFace()

int com.realtime.crossfire.jxclient.faces.SmoothFaces.getSmoothFace ( final int  face)

Returns the smoothing face associated with a given face.

Parameters
facethe face
Returns
the smoothing face or
0

Definition at line 45 of file SmoothFaces.java.

References com.realtime.crossfire.jxclient.faces.SmoothFaces.smoothFaces.

Referenced by com.realtime.crossfire.jxclient.gui.map.SmoothingRenderer.paintSmooth().

+ Here is the caller graph for this function:

◆ updateSmoothFace()

void com.realtime.crossfire.jxclient.faces.SmoothFaces.updateSmoothFace ( final int  face,
final int  smoothFace 
)

Updates smooth face information.

Parameters
facethe face number
smoothFacethe face number of the corresponding smooth face

Definition at line 58 of file SmoothFaces.java.

References com.realtime.crossfire.jxclient.faces.SmoothFaces.smoothFaces.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ smoothFaces

final Map<Integer, Integer> com.realtime.crossfire.jxclient.faces.SmoothFaces.smoothFaces = new HashMap<>()
private

All known smoothing mappings.

Maps face to associated smoothing face.

Definition at line 38 of file SmoothFaces.java.

Referenced by com.realtime.crossfire.jxclient.faces.SmoothFaces.getSmoothFace(), and com.realtime.crossfire.jxclient.faces.SmoothFaces.updateSmoothFace().


The documentation for this class was generated from the following file: