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

Public Member Functions

void testDisplayArtifacts1 ()
 
void testDisplayArtifacts2 ()
 
void testDisplayArtifacts3 ()
 
void testFogOfWar1 ()
 

Static Private Member Functions

static void defineFace (@NotNull final FaceCache faceCache, final int faceNum, @NotNull final String faceName, final byte @NotNull[] data)
 
static String toString (@NotNull final CfMap map, final int x0, final int y0, final int w, final int h)
 

Static Private Attributes

static final byte[] PNG128X256
 
static final byte[] PNG32X32
 
static final byte[] PNG64X64
 

Detailed Description

Regression tests for MapUpdaterState.

Author
Andreas Kirschbaum

Definition at line 43 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,
final byte @NotNull[]  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 395 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()

void com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.testDisplayArtifacts1 ( )

◆ testDisplayArtifacts2()

void com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.testDisplayArtifacts2 ( )

◆ testDisplayArtifacts3()

void com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.testDisplayArtifacts3 ( )

◆ testFogOfWar1()

void com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.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
Initial value:
= {
(byte)0x89, (byte)0x50, (byte)0x4e, (byte)0x47, (byte)0x0d, (byte)0x0a, (byte)0x1a, (byte)0x0a,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x0d, (byte)0x49, (byte)0x48, (byte)0x44, (byte)0x52,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x80, (byte)0x00, (byte)0x00, (byte)0x01, (byte)0x00,
(byte)0x08, (byte)0x06, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x7b, (byte)0xf9, (byte)0x7e,
(byte)0xa7, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x01, (byte)0x73, (byte)0x52, (byte)0x47,
(byte)0x42, (byte)0x00, (byte)0xae, (byte)0xce, (byte)0x1c, (byte)0xe9, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x95, (byte)0x49, (byte)0x44, (byte)0x41, (byte)0x54, (byte)0x78, (byte)0xda,
(byte)0xed, (byte)0xc1, (byte)0x01, (byte)0x01, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x80,
(byte)0x90, (byte)0xfe, (byte)0xaf, (byte)0xee, (byte)0x08, (byte)0x0a, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x80, (byte)0xaa, (byte)0x01, (byte)0x01,
(byte)0x1e, (byte)0x00, (byte)0x01, (byte)0xbc, (byte)0x1b, (byte)0xb9, (byte)0x6f, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x49, (byte)0x45, (byte)0x4e, (byte)0x44, (byte)0xae,
(byte)0x42, (byte)0x60, (byte)0x82,
}

A .png file of size 128x256.

Definition at line 86 of file MapUpdaterStateTest.java.

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

◆ PNG32X32

final byte [] com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.PNG32X32
staticprivate
Initial value:
= {
(byte)0x89, (byte)0x50, (byte)0x4e, (byte)0x47, (byte)0x0d, (byte)0x0a, (byte)0x1a, (byte)0x0a,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x0d, (byte)0x49, (byte)0x48, (byte)0x44, (byte)0x52,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x20, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x20,
(byte)0x08, (byte)0x06, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x73, (byte)0x7a, (byte)0x7a,
(byte)0xf4, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x01, (byte)0x73, (byte)0x52, (byte)0x47,
(byte)0x42, (byte)0x00, (byte)0xae, (byte)0xce, (byte)0x1c, (byte)0xe9, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x1a, (byte)0x49, (byte)0x44, (byte)0x41, (byte)0x54, (byte)0x58, (byte)0xc3,
(byte)0xed, (byte)0xc1, (byte)0x01, (byte)0x01, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x82,
(byte)0x20, (byte)0xff, (byte)0xaf, (byte)0x6e, (byte)0x48, (byte)0x40, (byte)0x01, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0xef, (byte)0x06, (byte)0x10, (byte)0x20, (byte)0x00, (byte)0x01,
(byte)0x97, (byte)0xf7, (byte)0x57, (byte)0xd7, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x49, (byte)0x45, (byte)0x4e, (byte)0x44, (byte)0xae, (byte)0x42, (byte)0x60, (byte)0x82,
}

A .png file of size 64x64.

Definition at line 48 of file MapUpdaterStateTest.java.

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

◆ PNG64X64

final byte [] com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.PNG64X64
staticprivate
Initial value:
= {
(byte)0x89, (byte)0x50, (byte)0x4e, (byte)0x47, (byte)0x0d, (byte)0x0a, (byte)0x1a, (byte)0x0a,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x0d, (byte)0x49, (byte)0x48, (byte)0x44, (byte)0x52,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x40, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x40,
(byte)0x08, (byte)0x06, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xaa, (byte)0x69, (byte)0x71,
(byte)0xde, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x01, (byte)0x73, (byte)0x52, (byte)0x47,
(byte)0x42, (byte)0x00, (byte)0xae, (byte)0xce, (byte)0x1c, (byte)0xe9, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x27, (byte)0x49, (byte)0x44, (byte)0x41, (byte)0x54, (byte)0x78, (byte)0xda,
(byte)0xed, (byte)0xc1, (byte)0x01, (byte)0x0d, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xc2,
(byte)0xa0, (byte)0xf7, (byte)0x4f, (byte)0x6d, (byte)0x0e, (byte)0x37, (byte)0xa0, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x80, (byte)0x77,
(byte)0x03, (byte)0x40, (byte)0x40, (byte)0x00, (byte)0x01, (byte)0xaf, (byte)0x7a, (byte)0x0e,
(byte)0xe8, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x49, (byte)0x45, (byte)0x4e,
(byte)0x44, (byte)0xae, (byte)0x42, (byte)0x60, (byte)0x82,
}

A .png file of size 64x64.

Definition at line 66 of file MapUpdaterStateTest.java.

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


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