Crossfire JXClient, Trunk
R20561
|
A. More...
Public Member Functions | |
boolean | equals (@Nullable final Object obj) |
Face (final int faceNum, @NotNull final String faceName, final int faceChecksum) | |
Creates a new instance. More... | |
int | getFaceChecksum () |
Returns the face checksum. More... | |
FaceImages | getFaceImages () |
Returns the images. More... | |
String | getFaceName () |
Returns the face name. More... | |
int | getFaceNum () |
Returns the unique face id. More... | |
int | getTileHeight () |
Returns the face height in tiles. More... | |
int | getTileWidth () |
Returns the face width in tiles. More... | |
int | hashCode () |
void | setFaceImages (@NotNull final FaceImages faceImages) |
Sets the images. More... | |
String | toString () |
Static Public Attributes | |
static final int | SQUARE_SIZE = 32 |
The size of one square in pixels. More... | |
Private Attributes | |
final int | faceChecksum |
The image checksum as sent by the server. More... | |
FaceImages | faceImages |
The images for this face. More... | |
final String | faceName |
The face name as sent by the server. More... | |
final int | faceNum |
The face id as sent by the server. More... | |
int | tileHeight = 1 |
The face height in tiles. More... | |
int | tileWidth = 1 |
The face width in tiles. More... | |
A.
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.
com.realtime.crossfire.jxclient.faces.Face.Face | ( | final int | faceNum, |
@NotNull final String | faceName, | ||
final int | faceChecksum | ||
) |
Creates a new instance.
faceNum | the unique face id |
faceName | the face name |
faceChecksum | the image checksum as sent by the server |
Definition at line 81 of file Face.java.
References com.realtime.crossfire.jxclient.faces.Face.faceChecksum, com.realtime.crossfire.jxclient.faces.Face.faceName, and com.realtime.crossfire.jxclient.faces.Face.faceNum.
Referenced by com.realtime.crossfire.jxclient.faces.Face.equals().
boolean com.realtime.crossfire.jxclient.faces.Face.equals | ( | @Nullable final Object | obj | ) |
Definition at line 173 of file Face.java.
References com.realtime.crossfire.jxclient.faces.Face.Face(), and com.realtime.crossfire.jxclient.faces.Face.faceNum.
int com.realtime.crossfire.jxclient.faces.Face.getFaceChecksum | ( | ) |
Returns the face checksum.
Definition at line 132 of file Face.java.
References com.realtime.crossfire.jxclient.faces.Face.faceChecksum.
FaceImages com.realtime.crossfire.jxclient.faces.Face.getFaceImages | ( | ) |
Returns the images.
May return
if the images are not yet known, or if they have been dropped from the cache.
Definition at line 115 of file Face.java.
References com.realtime.crossfire.jxclient.faces.Face.faceImages.
Referenced by com.realtime.crossfire.jxclient.faces.TestFacesManager.getFaceImages(), and com.realtime.crossfire.jxclient.faces.DefaultFacesManager.getFaceImages().
String com.realtime.crossfire.jxclient.faces.Face.getFaceName | ( | ) |
Returns the face name.
Definition at line 124 of file Face.java.
References com.realtime.crossfire.jxclient.faces.Face.faceName.
Referenced by com.realtime.crossfire.jxclient.faces.FileCacheFaceQueue.LoadTask.run(), com.realtime.crossfire.jxclient.faces.FileCacheFaceQueue.SaveTask.run(), and com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.toString().
int com.realtime.crossfire.jxclient.faces.Face.getFaceNum | ( | ) |
Returns the unique face id.
Definition at line 105 of file Face.java.
References com.realtime.crossfire.jxclient.faces.Face.faceNum.
Referenced by com.realtime.crossfire.jxclient.scripts.DefaultScriptProcess.commandSentMap(), com.realtime.crossfire.jxclient.shortcuts.ShortcutSpell.displaysFace(), com.realtime.crossfire.jxclient.gui.map.SmoothingRenderer.paintSmooth(), and com.realtime.crossfire.jxclient.map.CfMap.updateFace().
int com.realtime.crossfire.jxclient.faces.Face.getTileHeight | ( | ) |
Returns the face height in tiles.
Definition at line 157 of file Face.java.
References com.realtime.crossfire.jxclient.faces.Face.tileHeight.
Referenced by com.realtime.crossfire.jxclient.map.MapUpdaterState.mapFace().
int com.realtime.crossfire.jxclient.faces.Face.getTileWidth | ( | ) |
Returns the face width in tiles.
Definition at line 149 of file Face.java.
References com.realtime.crossfire.jxclient.faces.Face.tileWidth.
Referenced by com.realtime.crossfire.jxclient.map.MapUpdaterState.mapFace().
int com.realtime.crossfire.jxclient.faces.Face.hashCode | ( | ) |
Definition at line 165 of file Face.java.
References com.realtime.crossfire.jxclient.faces.Face.faceChecksum.
void com.realtime.crossfire.jxclient.faces.Face.setFaceImages | ( | @NotNull final FaceImages | faceImages | ) |
Sets the images.
faceImages | the images |
Definition at line 92 of file Face.java.
References com.realtime.crossfire.jxclient.faces.Face.faceImages, and com.realtime.crossfire.jxclient.faces.FaceImages.getOriginalImageIcon().
Referenced by com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.defineFace(), and com.realtime.crossfire.jxclient.faces.TestFacesManager.getFaceImages().
String com.realtime.crossfire.jxclient.faces.Face.toString | ( | ) |
Definition at line 141 of file Face.java.
References com.realtime.crossfire.jxclient.faces.Face.faceName.
Referenced by com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.toString().
|
private |
The image checksum as sent by the server.
Definition at line 57 of file Face.java.
Referenced by com.realtime.crossfire.jxclient.faces.Face.Face(), com.realtime.crossfire.jxclient.faces.Face.getFaceChecksum(), and com.realtime.crossfire.jxclient.faces.Face.hashCode().
|
private |
The images for this face.
Set to
if unknown.
Definition at line 73 of file Face.java.
Referenced by com.realtime.crossfire.jxclient.faces.Face.getFaceImages(), and com.realtime.crossfire.jxclient.faces.Face.setFaceImages().
|
private |
The face name as sent by the server.
Definition at line 52 of file Face.java.
Referenced by com.realtime.crossfire.jxclient.faces.Face.Face(), com.realtime.crossfire.jxclient.faces.Face.getFaceName(), and com.realtime.crossfire.jxclient.faces.Face.toString().
|
private |
The face id as sent by the server.
Definition at line 46 of file Face.java.
Referenced by com.realtime.crossfire.jxclient.faces.Face.equals(), com.realtime.crossfire.jxclient.faces.Face.Face(), and com.realtime.crossfire.jxclient.faces.Face.getFaceNum().
|
static |
The size of one square in pixels.
Definition at line 41 of file Face.java.
Referenced by com.realtime.crossfire.jxclient.faces.FaceImagesUtils.newEmptyFaceImages().
|
private |
The face height in tiles.
Definition at line 67 of file Face.java.
Referenced by com.realtime.crossfire.jxclient.faces.Face.getTileHeight().
|
private |
The face width in tiles.
Definition at line 62 of file Face.java.
Referenced by com.realtime.crossfire.jxclient.faces.Face.getTileWidth().