Crossfire JXClient, Trunk
Public Member Functions | Protected Member Functions | List of all members
com.realtime.crossfire.jxclient.faces.TestFacesManager Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.faces.TestFacesManager:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.faces.TestFacesManager:
Collaboration graph

Public Member Functions

 TestFacesManager (@NotNull final FaceCache faceCache)
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.faces.AbstractFacesManager
void addFacesManagerListener (@NotNull final FacesManagerListener facesManagerListener)
 
Face getFace (final int faceNum)
 
Face getFace2 (final int faceNum)
 
ImageIcon getMagicMapImageIcon (final int faceNum, @Nullable final AtomicBoolean returnIsUnknownImage)
 
ImageIcon getOriginalImageIcon (final int faceNum, @Nullable final AtomicBoolean returnIsUnknownImage)
 
ImageIcon getScaledImageIcon (final int faceNum, @Nullable final AtomicBoolean returnIsUnknownImage)
 
void removeFacesManagerListener (@NotNull final FacesManagerListener facesManagerListener)
 
void reset ()
 

Protected Member Functions

FaceImages getFaceImages (final int faceNum, @Nullable final AtomicBoolean returnIsUnknownImage)
 
- Protected Member Functions inherited from com.realtime.crossfire.jxclient.faces.AbstractFacesManager
 AbstractFacesManager (@NotNull final FaceCache faceCache)
 
void fireFaceUpdated (@NotNull final Face face)
 
Face lookupFace (final int faceNum)
 

Detailed Description

A FacesManager for regression tests.

Author
Andreas Kirschbaum

Definition at line 34 of file TestFacesManager.java.

Constructor & Destructor Documentation

◆ TestFacesManager()

com.realtime.crossfire.jxclient.faces.TestFacesManager.TestFacesManager ( @NotNull final FaceCache  faceCache)

Creates a new instance.

Parameters
faceCachethe face cache instance for storing in-memory faces

Definition at line 40 of file TestFacesManager.java.

References com.realtime.crossfire.jxclient.faces.AbstractFacesManager.faceCache.

Member Function Documentation

◆ getFaceImages()

FaceImages com.realtime.crossfire.jxclient.faces.TestFacesManager.getFaceImages ( final int  faceNum,
@Nullable final AtomicBoolean  returnIsUnknownImage 
)
protected

Returns the FaceImages information for a face ID. This function returns immediately even if the face is not loaded. A not loaded face will be updated as soon as loading has finished.

Parameters
faceNumthe face ID
returnIsUnknownImagereturns whether the returned face is the "unknown" face; ignored if
null
Returns
the face images information

Reimplemented from com.realtime.crossfire.jxclient.faces.AbstractFacesManager.

Definition at line 46 of file TestFacesManager.java.

References com.realtime.crossfire.jxclient.faces.Face.getFaceImages(), com.realtime.crossfire.jxclient.faces.AbstractFacesManager.lookupFace(), and com.realtime.crossfire.jxclient.faces.Face.setFaceImages().

Here is the call graph for this function:

The documentation for this class was generated from the following file: