net.sf.gridarta.var.atrinik.gui.map.renderer
public class MapRendererTest extends Object
IsoMapRenderer
correctly interprets DefaultIsoGameObject.ALIGN
, DefaultIsoGameObject.ROTATE
, and DefaultIsoGameObject.ZOOM
.Modifier and Type | Field and Description |
---|---|
private TestMapModelCreator |
mapModelCreator
The
TestMapModelCreator for creating MapModel instances. |
Constructor and Description |
---|
MapRendererTest() |
Modifier and Type | Method and Description |
---|---|
private TestMapRenderer |
newRenderer(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel)
Creates a new
TestMapRenderer instance for a MapModel . |
void |
testPaintAlign1()
Checks that
DefaultIsoGameObject.ALIGN shifts the x coordinate. |
void |
testPaintAlign2()
Checks that
DefaultIsoGameObject.ALIGN shifts the x coordinate. |
void |
testPaintCombined1()
Checks that a combination of attributes works as expected.
|
void |
testPaintEmpty()
Checks rendering no game objects.
|
void |
testPaintNormal()
Checks rendering game objects without attributes that affect rendering.
|
void |
testPaintZ1()
Checks that
DefaultIsoGameObject.Z shifts the y coordinate. |
void |
testPaintZ2()
Checks that
DefaultIsoGameObject.Z shifts the y coordinate. |
void |
testPaintZoom1()
Checks that
DefaultIsoGameObject.ZOOM scales. |
void |
testPaintZoom2()
Checks that
DefaultIsoGameObject.ZOOM scales. |
void |
testPaintZoom3()
Checks that
DefaultIsoGameObject.ZOOM scales. |
void |
testPaintZoom4()
Checks that
DefaultIsoGameObject.ZOOM scales. |
@NotNull private final TestMapModelCreator mapModelCreator
TestMapModelCreator
for creating MapModel
instances.public MapRendererTest()
public void testPaintEmpty()
public void testPaintNormal()
public void testPaintAlign1()
DefaultIsoGameObject.ALIGN
shifts the x coordinate.public void testPaintAlign2()
DefaultIsoGameObject.ALIGN
shifts the x coordinate.public void testPaintZ1()
DefaultIsoGameObject.Z
shifts the y coordinate.public void testPaintZ2()
DefaultIsoGameObject.Z
shifts the y coordinate.public void testPaintZoom1()
DefaultIsoGameObject.ZOOM
scales.public void testPaintZoom2()
DefaultIsoGameObject.ZOOM
scales.public void testPaintZoom3()
DefaultIsoGameObject.ZOOM
scales.public void testPaintZoom4()
DefaultIsoGameObject.ZOOM
scales.public void testPaintCombined1()
@NotNull private TestMapRenderer newRenderer(@NotNull MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel)
TestMapRenderer
instance for a MapModel
.mapModel
- the map model for the rendererFeedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.