 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.faces;
25 import javax.swing.Icon;
26 import org.jetbrains.annotations.NotNull;
27 import org.jetbrains.annotations.Nullable;
95 final int width = imageIcon.getIconWidth();
96 final int height = imageIcon.getIconHeight();
164 public boolean equals(@Nullable
final Object obj) {
168 if (obj.getClass() !=
Face.class) {
final int faceNum
The face id as sent by the server.
int tileHeight
The face height in tiles.
FaceImages getFaceImages()
Returns the images.
int getFaceNum()
Returns the unique face id.
int getFaceChecksum()
Returns the face checksum.
FaceImages faceImages
The images for this face.
Face(final int faceNum, @NotNull final String faceName, final int faceChecksum)
Creates a new instance.
final int faceChecksum
The image checksum as sent by the server.
Consists of three ImageIcons representing a Face.
String getFaceName()
Returns the face name.
int getTileWidth()
Returns the face width in tiles.
ImageIcon getOriginalImageIcon()
Returns the ImageIcon as sent by the Crossfire server.
boolean equals(@Nullable final Object obj)
final String faceName
The face name as sent by the server.
static final int SQUARE_SIZE
The size of one square in pixels.
void setFaceImages(@NotNull final FaceImages faceImages)
Sets the images.
int tileWidth
The face width in tiles.
int getTileHeight()
Returns the face height in tiles.