Crossfire JXClient, Trunk
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
com.realtime.crossfire.jxclient.faces.Face Class Reference
Collaboration diagram for com.realtime.crossfire.jxclient.faces.Face:
Collaboration graph

Public Member Functions

boolean equals (@Nullable final Object obj)
 
 Face (final int faceNum, @NotNull final String faceName, final int faceChecksum)
 
int getFaceChecksum ()
 
FaceImages getFaceImages ()
 
String getFaceName ()
 
int getFaceNum ()
 
int getTileHeight ()
 
int getTileWidth ()
 
int hashCode ()
 
void setFaceImages (@NotNull final FaceImages faceImages)
 
String toString ()
 

Static Public Attributes

static final int SQUARE_SIZE = 32
 

Private Attributes

final int faceChecksum
 
FaceImages faceImages
 
final String faceName
 
final int faceNum
 
int tileHeight = 1
 
int tileWidth = 1
 

Detailed Description

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.

Author
Lauwenmark
Andreas Kirschbaum

Definition at line 37 of file Face.java.

Constructor & Destructor Documentation

◆ Face()

com.realtime.crossfire.jxclient.faces.Face.Face ( final int  faceNum,
@NotNull final String  faceName,
final int  faceChecksum 
)

Creates a new instance.

Parameters
faceNumthe unique face id
faceNamethe face name
faceChecksumthe image checksum as sent by the server

Definition at line 82 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().

Here is the caller graph for this function:

Member Function Documentation

◆ equals()

boolean com.realtime.crossfire.jxclient.faces.Face.equals ( @Nullable final Object  obj)

Definition at line 164 of file Face.java.

References com.realtime.crossfire.jxclient.faces.Face.Face(), and com.realtime.crossfire.jxclient.faces.Face.faceNum.

Here is the call graph for this function:

◆ getFaceChecksum()

int com.realtime.crossfire.jxclient.faces.Face.getFaceChecksum ( )

Returns the face checksum.

Returns
the face checksum

Definition at line 132 of file Face.java.

References com.realtime.crossfire.jxclient.faces.Face.faceChecksum.

◆ getFaceImages()

FaceImages com.realtime.crossfire.jxclient.faces.Face.getFaceImages ( )

Returns the images. May return

null

if the images are not yet known, or if they have been dropped from the cache.

Returns
the images or
null

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().

Here is the caller graph for this function:

◆ getFaceName()

String com.realtime.crossfire.jxclient.faces.Face.getFaceName ( )

◆ getFaceNum()

int com.realtime.crossfire.jxclient.faces.Face.getFaceNum ( )

◆ getTileHeight()

int com.realtime.crossfire.jxclient.faces.Face.getTileHeight ( )

Returns the face height in tiles.

Returns
the tile height

Definition at line 154 of file Face.java.

References com.realtime.crossfire.jxclient.faces.Face.tileHeight.

Referenced by com.realtime.crossfire.jxclient.map.MapUpdaterState.mapFace().

Here is the caller graph for this function:

◆ getTileWidth()

int com.realtime.crossfire.jxclient.faces.Face.getTileWidth ( )

Returns the face width in tiles.

Returns
the tile width

Definition at line 146 of file Face.java.

References com.realtime.crossfire.jxclient.faces.Face.tileWidth.

Referenced by com.realtime.crossfire.jxclient.map.MapUpdaterState.mapFace().

Here is the caller graph for this function:

◆ hashCode()

int com.realtime.crossfire.jxclient.faces.Face.hashCode ( )

◆ setFaceImages()

void com.realtime.crossfire.jxclient.faces.Face.setFaceImages ( @NotNull final FaceImages  faceImages)

◆ toString()

String com.realtime.crossfire.jxclient.faces.Face.toString ( )

Definition at line 138 of file Face.java.

References com.realtime.crossfire.jxclient.faces.Face.faceName.

Referenced by com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.toString().

Here is the caller graph for this function:

Member Data Documentation

◆ faceChecksum

final int com.realtime.crossfire.jxclient.faces.Face.faceChecksum
private

◆ faceImages

FaceImages com.realtime.crossfire.jxclient.faces.Face.faceImages
private

The images for this face. Set to

null

if unknown.

Definition at line 74 of file Face.java.

Referenced by com.realtime.crossfire.jxclient.faces.Face.getFaceImages(), and com.realtime.crossfire.jxclient.faces.Face.setFaceImages().

◆ faceName

final String com.realtime.crossfire.jxclient.faces.Face.faceName
private

◆ faceNum

final int com.realtime.crossfire.jxclient.faces.Face.faceNum
private

◆ SQUARE_SIZE

final int com.realtime.crossfire.jxclient.faces.Face.SQUARE_SIZE = 32
static

◆ tileHeight

int com.realtime.crossfire.jxclient.faces.Face.tileHeight = 1
private

◆ tileWidth

int com.realtime.crossfire.jxclient.faces.Face.tileWidth = 1
private

The documentation for this class was generated from the following file:
com.realtime.crossfire.jxclient.faces.Face.Face
Face(final int faceNum, @NotNull final String faceName, final int faceChecksum)
Definition: Face.java:82