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