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);
InsertionModeSet< TestGameObject, TestMapArchObject, TestArchetype > getInsertionModeSet()
TestArchetype newArchetype(@NotNull final String archetypeName)
final AutojoinLists< TestGameObject, TestMapArchObject, TestArchetype > autojoinLists
static final String SQUARE_PRE_SELECTED_SQUARE
final GameObjectMatchers gameObjectMatchers
TestMapModelHelper newTestMapModelHelper()
static final String SQUARE_SELECTED_SQUARE_EAST
MapViewSettings getMapViewSettings()
static final String SQUARE_NO_FACE
void insertGameObject(@NotNull final GameObject< TestGameObject, TestMapArchObject, TestArchetype > gameObject, @NotNull final String archetypeName, @NotNull final String name)
static final String SQUARE_EMPTY
static final String SQUARE_SELECTED_SQUARE_WEST
void setNormal(@NotNull final FaceProvider normalFaceProvider)
AutojoinLists< TestGameObject, TestMapArchObject, TestArchetype > getAutojoinLists()
void setMapSize(@NotNull final Size2D mapSize)
static final String SQUARE_SELECTED_SQUARE_SOUTH
MapModel< TestGameObject, TestMapArchObject, TestArchetype > newMapModel(final int w, final int h)
FaceObjectProviders getFaceObjectProviders()
static final String DEFAULT_ICON
GameObjectFactory< TestGameObject, TestMapArchObject, TestArchetype > getGameObjectFactory()
final InsertionMode topmostInsertionMode
final MapViewSettings mapViewSettings
ArchetypeSet< TestGameObject, TestMapArchObject, TestArchetype > getArchetypeSet()
static final String SQUARE_WARNING
GameObjectMatchers getGameObjectMatchers()
static final String SQUARE_CURSOR
final AnimationObjects animationObjects
ArchetypeChooserModel< TestGameObject, TestMapArchObject, TestArchetype > getArchetypeChooserModel()
TestGameObject newGameObject(@NotNull final String archetypeName, @NotNull final String objectName, final int type)
TestArchetype getArchetype(@NotNull final String archetypeName)
TestGameObject newGameObject(@NotNull final String archetypeName, @NotNull final String objectName)
static final String SQUARE_UNKNOWN
InsertionMode getTopmostInsertionMode()
static final String DEFAULT_PREVIEW
TestMapModelCreator(final boolean createIcons)
void addToCache(@NotNull final String name, @NotNull final ImageIcon imageIcon)
static final String SQUARE_SELECTED_SQUARE_NORTH
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)
final ResourceIcons resourceIcons
final InsertionModeSet< TestGameObject, TestMapArchObject, TestArchetype > insertionModeSet
final ArchetypeChooserModel< TestGameObject, TestMapArchObject, TestArchetype > archetypeChooserModel
TestArchetype getArchetype(@NotNull final String archetypeName, final int type)
final ArchetypeSet< TestGameObject, TestMapArchObject, TestArchetype > archetypeSet
final GameObjectFactory< TestGameObject, TestMapArchObject, TestArchetype > gameObjectFactory
ResourceIcons getResourceIcons()
static final String SQUARE_NO_ARCH
GameObjectParser< TestGameObject, TestMapArchObject, TestArchetype > newGameObjectParser()
final FaceObjectProviders faceObjectProviders
static final String[] ICON_NAMES
static final String SQUARE_SELECTED_SQUARE