 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.mapcontrol;
22 import java.util.List;
31 import org.jetbrains.annotations.NotNull;
32 import org.jetbrains.annotations.Nullable;
75 if (objects !=
null) {
92 throw new AssertionError();
An Archetype implementation for testing purposes.
final MapModelFactory< TestGameObject, TestMapArchObject, TestArchetype > mapModelFactory
The MapModelFactory for creating MapModel instances.
A MapModel reflects the data of a map.
Factory for creating MapControl instances.
void resetModified()
Resets the modified flag to false.
Base package of all Gridarta classes.
An MapControlFactory implementation for testing purposes.
void endTransaction()
End a transaction.
A GameObject implementation for testing purposes.
void beginTransaction(@NotNull String name)
Starts a new transaction.
A factory for creating MapModel instances.
MapControl< TestGameObject, TestMapArchObject, TestArchetype > newMapControl(@Nullable final List< TestGameObject > objects, @NotNull final TestMapArchObject mapArchObject, @Nullable final MapFile mapFile)
GameObjects are the objects based on Archetypes found on maps.
final ProjectSettings projectSettings
The ProjectSettings to use.
Interface for classes that write map files.
final MapWriter< TestGameObject, TestMapArchObject, TestArchetype > mapWriter
The MapWriter for saving MapControl instances.
TestMapControlFactory(@NotNull final MapWriter< TestGameObject, TestMapArchObject, TestArchetype > mapWriter, @NotNull final ProjectSettings projectSettings, @NotNull final MapModelFactory< TestGameObject, TestMapArchObject, TestArchetype > mapModelFactory)
Creates a new instance.
The location of a map file with a map directory.
Reading and writing of maps, handling of paths.
Settings that apply to a project.
void setMapFile(@Nullable MapFile mapFile)
Sets the map file.
Currently nothing more than a marker interface for unification.
MapModel< G, A, R > getMapModel()
Returns the map model.
A MapArchObject implementation for testing purposes.
void addObjectListToMap(@NotNull Iterable< G > objects)
Adds a list of GameObjects to this map.
MapControl< TestGameObject, TestMapArchObject, TestArchetype > newPickmapControl(@Nullable final List< TestGameObject > objects, @NotNull final TestMapArchObject mapArchObject, @Nullable final MapFile mapFile)