|
Crossfire JXClient, Trunk
R20561
|
A cache for Face instances. More...
Collaboration diagram for com.realtime.crossfire.jxclient.faces.FaceCache:Public Member Functions | |
| void | addFace (@NotNull final Face face) |
| Adds a new face to the cache. More... | |
| void | addFace (final int faceNum, final int faceSetNum, final int faceChecksum, @NotNull final String faceName) |
| Adds a new face. More... | |
| FaceCache () | |
| Creates a new instance. More... | |
| Face | getFace (final int faceNum) |
| Returns a face by face id. More... | |
| void | reset () |
| Forgets about all face information. More... | |
Private Attributes | |
| final Face [] | faces = new Face[65536] |
| The cached faces. More... | |
A cache for Face instances.
Definition at line 31 of file FaceCache.java.
| com.realtime.crossfire.jxclient.faces.FaceCache.FaceCache | ( | ) |
Creates a new instance.
Definition at line 42 of file FaceCache.java.
| void com.realtime.crossfire.jxclient.faces.FaceCache.addFace | ( | @NotNull final Face | face | ) |
Adds a new face to the cache.
| face | the face to add |
Definition at line 50 of file FaceCache.java.
Referenced by com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.fireFaceReceived().
Here is the caller graph for this function:| void com.realtime.crossfire.jxclient.faces.FaceCache.addFace | ( | final int | faceNum, |
| final int | faceSetNum, | ||
| final int | faceChecksum, | ||
| @NotNull final String | faceName | ||
| ) |
Adds a new face.
| faceNum | the face ID |
| faceSetNum | the face set |
| faceChecksum | the face checksum |
| faceName | the face name |
Definition at line 87 of file FaceCache.java.
| Face com.realtime.crossfire.jxclient.faces.FaceCache.getFace | ( | final int | faceNum | ) |
Returns a face by face id.
| faceNum | the face id to look up |
Definition at line 60 of file FaceCache.java.
Referenced by com.realtime.crossfire.jxclient.faces.AbstractFacesManager.getFace(), com.realtime.crossfire.jxclient.faces.AbstractFacesManager.getFace2(), and com.realtime.crossfire.jxclient.faces.AbstractFacesManager.lookupFace().
Here is the caller graph for this function:| void com.realtime.crossfire.jxclient.faces.FaceCache.reset | ( | ) |
Forgets about all face information.
Should be called when connecting to a Crossfire server.
Definition at line 75 of file FaceCache.java.
Referenced by com.realtime.crossfire.jxclient.faces.AbstractFacesManager.reset().
Here is the caller graph for this function: