Go to the documentation of this file.
20 package net.sf.gridarta.model.mapmodel;
22 import java.awt.Point;
23 import java.awt.image.BufferedImage;
24 import javax.swing.ImageIcon;
56 import org.jetbrains.annotations.NotNull;
57 import org.junit.Assert;
75 private static final String @NotNull []
ICON_NAMES = {
ResourceIcons.
SQUARE_SELECTED_SQUARE,
ResourceIcons.
SQUARE_SELECTED_SQUARE_NORTH,
ResourceIcons.
SQUARE_SELECTED_SQUARE_EAST,
ResourceIcons.
SQUARE_SELECTED_SQUARE_SOUTH,
ResourceIcons.
SQUARE_SELECTED_SQUARE_WEST,
ResourceIcons.
SQUARE_PRE_SELECTED_SQUARE,
ResourceIcons.
SQUARE_CURSOR,
ResourceIcons.
SQUARE_EMPTY,
ResourceIcons.
SQUARE_UNKNOWN,
ResourceIcons.
SQUARE_NO_FACE,
ResourceIcons.
SQUARE_NO_ARCH,
ResourceIcons.
DEFAULT_ICON,
ResourceIcons.
DEFAULT_PREVIEW,
ResourceIcons.
SQUARE_WARNING, };
145 final ImageIcon imageIcon =
new ImageIcon(
new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB));
211 mapModel.addGameObjectToMap(gameObject,
new Point(x, y), insertionMode);
222 gameObject.addLast(inv);
272 Assert.fail(ex.getMessage());
273 throw new AssertionError(ex);
static final String SQUARE_PRE_SELECTED_SQUARE
InsertionMode getTopmostInsertionMode()
ResourceIcons getResourceIcons()
GameObjectFactory< TestGameObject, TestMapArchObject, TestArchetype > getGameObjectFactory()
static final String DEFAULT_PREVIEW
static final String SQUARE_CURSOR
static final String[] ICON_NAMES
TestGameObject newGameObject(@NotNull final String archetypeName, @NotNull final String objectName, final int type)
static final String SQUARE_UNKNOWN
static final String SQUARE_WARNING
TestMapModelHelper newTestMapModelHelper()
TestArchetype getArchetype(@NotNull final String archetypeName)
InsertionModeSet< TestGameObject, TestMapArchObject, TestArchetype > getInsertionModeSet()
void setNormal(@NotNull final FaceProvider normalFaceProvider)
final FaceObjectProviders faceObjectProviders
static final String SQUARE_SELECTED_SQUARE_EAST
final InsertionMode topmostInsertionMode
static final String SQUARE_SELECTED_SQUARE_SOUTH
static final String DEFAULT_ICON
MapViewSettings getMapViewSettings()
static final String SQUARE_SELECTED_SQUARE
static final String SQUARE_NO_ARCH
static final String SQUARE_SELECTED_SQUARE_WEST
final GameObjectFactory< TestGameObject, TestMapArchObject, TestArchetype > gameObjectFactory
final ResourceIcons resourceIcons
ArchetypeChooserModel< TestGameObject, TestMapArchObject, TestArchetype > getArchetypeChooserModel()
MapModel< TestGameObject, TestMapArchObject, TestArchetype > newMapModel(final int w, final int h)
GameObjectParser< TestGameObject, TestMapArchObject, TestArchetype > newGameObjectParser()
void setMapSize(@NotNull final Size2D mapSize)
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)
GameObjectMatchers getGameObjectMatchers()
final InsertionModeSet< TestGameObject, TestMapArchObject, TestArchetype > insertionModeSet
static final String SQUARE_EMPTY
ArchetypeSet< TestGameObject, TestMapArchObject, TestArchetype > getArchetypeSet()
TestGameObject newGameObject(@NotNull final String archetypeName, @NotNull final String objectName)
static final String SQUARE_SELECTED_SQUARE_NORTH
static final String SQUARE_NO_FACE
final AnimationObjects animationObjects
void insertGameObject(@NotNull final GameObject< TestGameObject, TestMapArchObject, TestArchetype > gameObject, @NotNull final String archetypeName, @NotNull final String name)
final GameObjectMatchers gameObjectMatchers
FaceObjectProviders getFaceObjectProviders()
void addToCache(@NotNull final String name, @NotNull final ImageIcon imageIcon)
final ArchetypeChooserModel< TestGameObject, TestMapArchObject, TestArchetype > archetypeChooserModel
final ArchetypeSet< TestGameObject, TestMapArchObject, TestArchetype > archetypeSet
TestMapModelCreator(final boolean createIcons)
final MapViewSettings mapViewSettings
TestArchetype getArchetype(@NotNull final String archetypeName, final int type)
final AutojoinLists< TestGameObject, TestMapArchObject, TestArchetype > autojoinLists
TestArchetype newArchetype(@NotNull final String archetypeName)
AutojoinLists< TestGameObject, TestMapArchObject, TestArchetype > getAutojoinLists()