20 package net.sf.gridarta.var.atrinik.gui.map.renderer;
22 import java.awt.Point;
23 import java.util.Collections;
42 import org.jetbrains.annotations.NotNull;
43 import org.junit.Assert;
44 import org.junit.Test;
276 final MapGrid mapGrid =
new MapGrid(mapModel.getMapArchObject().getMapSize());
282 return new TestMapRenderer(mapViewSettings, filterControl, mapModel, mapGrid, multiPositionData, isoMapSquareInfo, gridMapSquarePainter, gameObjectParser, resourceIcons);
An IsoMapRenderer for regression tests.
A Filter that aggregates named filters.
MapModel< TestGameObject, TestMapArchObject, TestArchetype > newMapModel(final int w, final int h)
Creates a new MapModel instance.
BufferedImage getFullImage()
A MapModel reflects the data of a map.
Graphical User Interface of Gridarta.
Reading and writing of maps, handling of paths.
Helper class for regression tests to create MapModel instances.
String getPaintingOperations()
Returns and clears the accumulated painting operations.
void endTransaction()
End a transaction.
static final String ZOOM
The name of the "zoom" attribute.
static final String LAYER
The name of the "layer" attribute.
void testPaintNormal()
Checks rendering game objects without attributes that affect rendering.
void testPaintEmpty()
Checks rendering no game objects.
Interface for classes that read or write GameObject instances.
Default implementation of EditorSettings.
A MapArchObject implementation for testing purposes.
void testPaintZoom1()
Checks that DefaultIsoGameObject#ZOOM scales.
Base package of all Gridarta classes.
void addGameObjectToMap(@NotNull G gameObject, @NotNull Point pos, @NotNull InsertionMode< G, A, R > insertionMode)
Add a gameObject to the map.
void testPaintZ1()
Checks that DefaultIsoGameObject#Z shifts the y coordinate.
final TestMapModelCreator mapModelCreator
The TestMapModelCreator for creating MapModel instances.
Paints overlays for map grids.
TestGameObject newGameObject(@NotNull final String archetypeName, @NotNull final String objectName)
Creates a new game object.
Container for settings that affect the rendering of maps.
static final String Z
The name of the "z" attribute.
GameObjects are the objects based on Archetypes found on maps.
The MultiPositionData class stores an array of numbers which is required in order to calculate displa...
Regression tests that net.sf.gridarta.gui.map.renderer.IsoMapRenderer correctly interprets DefaultIso...
2D-Grid containing flags for selection, pre-selection, cursor, warnings and errors.
The filter package contains the classes for Filters.
void testPaintCombined1()
Checks that a combination of attributes works as expected.
static final String ROTATE
The name of the "rotate" attribute.
void testPaintAlign1()
Checks that DefaultIsoGameObject#ALIGN shifts the x coordinate.
Base classes for rendering maps.
Provides information about isometric map squares.
GameObjectParser< TestGameObject, TestMapArchObject, TestArchetype > newGameObjectParser()
Creates a new GameObjectParser instance.
void testPaintZoom3()
Checks that DefaultIsoGameObject#ZOOM scales.
ResourceIcons getResourceIcons()
Returns the ResourceIcons instance.
Creates ImageIcon instances from resources.
void addGameObjectToMap(@NotNull final MapModel< TestGameObject, TestMapArchObject, TestArchetype > mapModel, @NotNull final String archetypeName, @NotNull final String name, final int x, final int y, @NotNull final InsertionMode< TestGameObject, TestMapArchObject, TestArchetype > insertionMode)
Inserts a game object into a map.
MapViewSettings getMapViewSettings()
Returns the MapViewSettings instance.
An Archetype implementation for testing purposes.
void testPaintAlign2()
Checks that DefaultIsoGameObject#ALIGN shifts the x coordinate.
A GameObject implementation for testing purposes.
void testPaintZ2()
Checks that DefaultIsoGameObject#Z shifts the y coordinate.
InsertionMode< TestGameObject, TestMapArchObject, TestArchetype > getTopmostInsertionMode()
Returns the "topmost" insertion mode.
void beginTransaction(@NotNull String name)
Starts a new transaction.
Default implementation for GameObject implementing classes.
Settings that apply to the editor.
static final String ALIGN
The name of the "align" attribute.
TestMapRenderer newRenderer(@NotNull final MapModel< TestGameObject, TestMapArchObject, TestArchetype > mapModel)
Creates a new TestMapRenderer instance for a MapModel.
void testPaintZoom4()
Checks that DefaultIsoGameObject#ZOOM scales.
void testPaintZoom2()
Checks that DefaultIsoGameObject#ZOOM scales.