Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.map.MapUpdaterStateTest Class Reference

Regression tests for MapUpdaterState. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.map.MapUpdaterStateTest:

Public Member Functions

void testDisplayArtifacts1 () throws IOException
 Checks that a regression causing display artifacts is fixed. More...
 
void testDisplayArtifacts2 () throws IOException
 Checks that a regression causing display artifacts is fixed. More...
 
void testDisplayArtifacts3 () throws IOException
 Checks that a regression causing display artifacts is fixed. More...
 
void testFogOfWar1 () throws IOException
 Checks that a cleared multi-tile face causes all affected tiles to become fog-of-war. More...
 

Static Private Member Functions

static void defineFace (@NotNull final FaceCache faceCache, final int faceNum, @NotNull final String faceName, @NotNull final byte[] data)
 Adds a new face to a FaceCache. More...
 
static String toString (@NotNull final CfMap map, final int x0, final int y0, final int w, final int h)
 Returns a string representation of a rectangular area of a CfMap instance. More...
 

Static Private Attributes

static final byte [] PNG128X256
 A .png file of size 128x256. More...
 
static final byte [] PNG32X32
 A .png file of size 64x64. More...
 
static final byte [] PNG64X64
 A .png file of size 64x64. More...
 

Detailed Description

Regression tests for MapUpdaterState.

Author
Andreas Kirschbaum MagicNumber

Definition at line 42 of file MapUpdaterStateTest.java.

Member Function Documentation

◆ defineFace()

static void com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.defineFace ( @NotNull final FaceCache  faceCache,
final int  faceNum,
@NotNull final String  faceName,
@NotNull final byte []  data 
)
staticprivate

Adds a new face to a FaceCache.

Parameters
faceCachethe face cache to add to
faceNumthe face number to add
faceNamethe face name to add
datathe face data as .png

Definition at line 771 of file MapUpdaterStateTest.java.

References com.realtime.crossfire.jxclient.faces.FaceImagesUtils.newFaceImages(), and com.realtime.crossfire.jxclient.faces.Face.setFaceImages().

Referenced by com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.testDisplayArtifacts1(), com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.testDisplayArtifacts2(), com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.testDisplayArtifacts3(), and com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.testFogOfWar1().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testDisplayArtifacts1()

◆ testDisplayArtifacts2()

◆ testDisplayArtifacts3()

◆ testFogOfWar1()

◆ toString()

static String com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.toString ( @NotNull final CfMap  map,
final int  x0,
final int  y0,
final int  w,
final int  h 
)
staticprivate

Member Data Documentation

◆ PNG128X256

final byte [] com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.PNG128X256
staticprivate

A .png file of size 128x256.

Definition at line 267 of file MapUpdaterStateTest.java.

◆ PNG32X32

final byte [] com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.PNG32X32
staticprivate

A .png file of size 64x64.

Definition at line 48 of file MapUpdaterStateTest.java.

◆ PNG64X64

final byte [] com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.PNG64X64
staticprivate

A .png file of size 64x64.

Definition at line 151 of file MapUpdaterStateTest.java.


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