public class Face
extends java.lang.Object
Face represents one image received from a Crossfire server. The
face is uniquely identified by a face id; it has a face name and three images
(original as sent by the server, scaled for use in map view, scaled for use
in magic map view) attached.| Modifier and Type | Field and Description |
|---|---|
static int |
SQUARE_SIZE
The size of one square in pixels.
|
| Constructor and Description |
|---|
Face(int faceNum,
@NotNull java.lang.String faceName,
int faceChecksum)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(@Nullable java.lang.Object obj) |
int |
getFaceChecksum()
Returns the face checksum.
|
@Nullable FaceImages |
getFaceImages()
Returns the images.
|
@NotNull java.lang.String |
getFaceName()
Returns the face name.
|
int |
getFaceNum()
Returns the unique face id.
|
int |
getTileHeight()
Returns the face height in tiles.
|
int |
getTileWidth()
Returns the face width in tiles.
|
int |
hashCode() |
void |
setFaceImages(@NotNull FaceImages faceImages)
Sets the images.
|
@NotNull java.lang.String |
toString() |
public static final int SQUARE_SIZE
public Face(int faceNum,
@NotNull
@NotNull java.lang.String faceName,
int faceChecksum)
faceNum - the unique face idfaceName - the face namefaceChecksum - the image checksum as sent by the serverpublic void setFaceImages(@NotNull
@NotNull FaceImages faceImages)
faceImages - the imagespublic int getFaceNum()
@Nullable public @Nullable FaceImages getFaceImages()
null if the images are not yet
known, or if they have been dropped from the cache.null@NotNull public @NotNull java.lang.String getFaceName()
public int getFaceChecksum()
@NotNull public @NotNull java.lang.String toString()
toString in class java.lang.Objectpublic int getTileWidth()
public int getTileHeight()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(@Nullable
@Nullable java.lang.Object obj)
equals in class java.lang.Object