java.lang.Object com.realtime.crossfire.jxclient.faces.FaceCache
public class FaceCache
A cache for Face
instances.
Field Summary | |
---|---|
private CrossfireFaceListener |
crossfireFaceListener
The listener to receive face commands. |
private Face[] |
faces
The cached faces. |
Constructor Summary | |
---|---|
FaceCache()
Creates a new instance. |
|
FaceCache(CrossfireServerConnection crossfireServerConnection)
Creates a new instance. |
Method Summary | |
---|---|
void |
addFace(Face face)
Adds a new face to the cache. |
Face |
getFace(int faceNum)
Returns a face by face id. |
void |
reset()
Forgets about all face information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final CrossfireFaceListener crossfireFaceListener
@NotNull private final Face[] faces
null
.
Constructor Detail |
---|
public FaceCache()
public FaceCache(@NotNull CrossfireServerConnection crossfireServerConnection)
crossfireServerConnection
- the server connection to useMethod Detail |
---|
public void addFace(@NotNull Face face)
face
- the face to add@NotNull public Face getFace(int faceNum)
faceNum
- the face id to look up
public void reset()