Class FaceCache
java.lang.Object
com.realtime.crossfire.jxclient.faces.FaceCache
A cache for
Face instances.-
Constructor Details
-
FaceCache
public FaceCache()Creates a new instance.
-
-
Method Details
-
addFace
Adds a new face to the cache.- Parameters:
face- the face to add
-
getFace
Returns a face by face id.- Parameters:
faceNum- the face id to look up- Returns:
- the face
-
reset
public void reset()Forgets about all face information. Should be called when connecting to a Crossfire server. -
addFace
public void addFace(int faceNum, int faceSetNum, int faceChecksum, @NotNull @NotNull String faceName) Adds a new face.- Parameters:
faceNum- the face IDfaceSetNum- the face setfaceChecksum- the face checksumfaceName- the face name
-