net.sf.gridarta.model.mapmodel
public class TestMapModelCreator extends Object
MapModel
instances.Constructor and Description |
---|
TestMapModelCreator(boolean createIcons)
Creates a new instance.
|
@NotNull private final ArchetypeSet<TestGameObject,TestMapArchObject,TestArchetype> archetypeSet
ArchetypeSet
instance.@NotNull private static final String[] ICON_NAMES
@NotNull private final MapViewSettings mapViewSettings
MapViewSettings
instance.@NotNull private final ResourceIcons resourceIcons
ResourceIcons
instance.@NotNull private final FaceObjectProviders faceObjectProviders
FaceObjectProviders
instance.@NotNull private final GameObjectMatchers gameObjectMatchers
GameObjectMatchers
instance.@NotNull private final ArchetypeChooserModel<TestGameObject,TestMapArchObject,TestArchetype> archetypeChooserModel
ArchetypeChooserModel
instance.@NotNull private final AutojoinLists<TestGameObject,TestMapArchObject,TestArchetype> autojoinLists
AutojoinLists
instance.@NotNull private final GameObjectFactory<TestGameObject,TestMapArchObject,TestArchetype> gameObjectFactory
GameObjectFactory
instance.@NotNull private final AnimationObjects animationObjects
AnimationObjects
instance.@NotNull private final InsertionMode<TestGameObject,TestMapArchObject,TestArchetype> topmostInsertionMode
InsertionMode
instance.@NotNull private final InsertionModeSet<TestGameObject,TestMapArchObject,TestArchetype> insertionModeSet
InsertionModeSet
instance.public TestMapModelCreator(boolean createIcons)
createIcons
- whether to create icon instances@NotNull public MapModel<TestGameObject,TestMapArchObject,TestArchetype> newMapModel(int w, int h)
MapModel
instance.w
- the width in squaresh
- the height in squares@NotNull public TestGameObject newGameObject(@NotNull String archetypeName, @NotNull String objectName)
archetypeName
- the name of the game object´s archetypeobjectName
- the object name to setpublic void addGameObjectToMap(@NotNull MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel, @NotNull String archetypeName, @NotNull String name, int x, int y, @NotNull InsertionMode<TestGameObject,TestMapArchObject,TestArchetype> insertionMode)
mapModel
- the map to add toarchetypeName
- the name of the game object´s archetypename
- the name of the game object to addx
- the x coordinate to add toy
- the y coordinate to add toinsertionMode
- the insertion mode to usepublic void insertGameObject(@NotNull GameObject<TestGameObject,TestMapArchObject,TestArchetype> gameObject, @NotNull String archetypeName, @NotNull String name)
gameObject
- the game object to add toarchetypeName
- the name of the game object´s archetypename
- the name of the game object to add@NotNull public InsertionModeSet<TestGameObject,TestMapArchObject,TestArchetype> getInsertionModeSet()
InsertionModeSet
instance.@NotNull public InsertionMode<TestGameObject,TestMapArchObject,TestArchetype> getTopmostInsertionMode()
@NotNull public TestArchetype getArchetype(@NotNull String archetypeName)
archetypeName
- the archetype name@NotNull public TestArchetype newArchetype(@NotNull String archetypeName)
TestArchetype
instance but doesn't add it to the
archetype set.archetypeName
- the archetype´s name@NotNull public GameObjectFactory<TestGameObject,TestMapArchObject,TestArchetype> getGameObjectFactory()
GameObjectFactory
instance.@NotNull public MapViewSettings getMapViewSettings()
MapViewSettings
instance.@NotNull public TestMapModelHelper newTestMapModelHelper() throws DuplicateArchetypeException
TestMapModelHelper
instance.DuplicateArchetypeException
- if an internal error occurs@NotNull public AutojoinLists<TestGameObject,TestMapArchObject,TestArchetype> getAutojoinLists()
AutojoinLists
instance.@NotNull public ArchetypeChooserModel<TestGameObject,TestMapArchObject,TestArchetype> getArchetypeChooserModel()
ArchetypeChooserModel
instance.@NotNull public GameObjectMatchers getGameObjectMatchers()
GameObjectMatchers
instance.@NotNull public ArchetypeSet<TestGameObject,TestMapArchObject,TestArchetype> getArchetypeSet()
ArchetypeSet
.public GameObjectParser<TestGameObject,TestMapArchObject,TestArchetype> newGameObjectParser()
GameObjectParser
instance.@NotNull public FaceObjectProviders getFaceObjectProviders()
FaceObjectProviders
instance.@NotNull public ResourceIcons getResourceIcons()
ResourceIcons
instance.Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.