public class FaceCache
extends java.lang.Object
Face
instances.Constructor and Description |
---|
FaceCache()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addFace(Face face)
Adds a new face to the cache.
|
void |
addFace(int faceNum,
int faceSetNum,
int faceChecksum,
java.lang.String faceName)
Adds a new face.
|
Face |
getFace(int faceNum)
Returns a face by face id.
|
void |
reset()
Forgets about all face information.
|
@NotNull private final Face[] faces
null
.public void addFace(@NotNull Face face)
face
- the face to addpublic void addFace(int faceNum, int faceSetNum, int faceChecksum, @NotNull java.lang.String faceName)
faceNum
- the face IDfaceSetNum
- the face setfaceChecksum
- the face checksumfaceName
- the face name@NotNull public Face getFace(int faceNum)
faceNum
- the face id to look uppublic void reset()