 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.mapmanager;
23 import java.io.IOException;
24 import java.util.List;
30 import org.jetbrains.annotations.NotNull;
31 import org.jetbrains.annotations.Nullable;
A MapManager manages all opened maps.
void removeMapManagerListener(@NotNull MapManagerListener< G, A, R > listener)
Removes a MapManagerListener to be notified.
Base package of all Gridarta classes.
MapControl< G, A, R > newMap(@Nullable List< G > objects, @NotNull A mapArchObject, @Nullable MapFile mapFile, boolean interactive)
Creates a new map control without view.
void addMapManagerListener(@NotNull MapManagerListener< G, A, R > listener)
Adds a MapManagerListener to be notified.
Reflects a game object (object on a map).
List< MapControl< G, A, R > > getOpenedMaps()
Returns all opened maps.
GameObjects are the objects based on Archetypes found on maps.
Interface for MapArchObjects.
File getLocalMapDir()
Returns a guess for a script directory to use.
MapControl< G, A, R > openMapFile(@NotNull MapFile mapFile, boolean interactive)
Loads a map file.
MapControl< G, A, R > getCurrentMap()
Returns the current map.
The location of a map file with a map directory.
void release(@NotNull MapControl< G, A, R > mapControl)
Releases a MapControl instance.
void revert(@NotNull MapControl< G, A, R > mapControl)
Reverts one map.
MapControl< G, A, R > getOpenMap()
Returns one open map.
Currently nothing more than a marker interface for unification.
void setCurrentMap(@Nullable MapControl< G, A, R > mapControl)
Sets the given map as the current one.
void closeMap(@NotNull MapControl< G, A, R > mapControl)
Closes the given map, ignoring modified status.