 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.plugin.parameter;
23 import java.io.IOException;
31 import org.jetbrains.annotations.NotNull;
32 import org.jetbrains.annotations.Nullable;
37 public class MapParameter<G
extends GameObject<G, A, R>, A extends
MapArchObject<A>, R extends
Archetype<G, A, R>> extends
AbstractStringPluginParameter<G, A, R, MapControl<G, A, R>> {
87 return visitor.visit(
this);
96 if (currentMap ==
null) {
107 }
catch (
final IOException ex) {
MapParameter(@NotNull final MapManager< G, A, R > mapManager, @NotNull final PathManager pathManager)
Creates a new instance.
A MapManager manages all opened maps.
void acquire()
Increases the use counter.
MapControl< G, A, R > getValue()
Base package of all Gridarta classes.
A PluginParameter that holds a MapControl value.
This class contains methods for converting relative map paths to absolute map paths and vice versa.
final MapManager< G, A, R > mapManager
The MapManager for converting map paths to MapControl instances.
boolean isCurrentMap()
Returns whether the current map is selected.
Reflects a game object (object on a map).
static final String PARAMETER_TYPE
The string representation of this parameter type.
String stringValue
The current value.
final PathManager pathManager
The PathManager instance for converting Files into path names.
MapControl< G, A, R > getValueOrNull()
String getParameterType()
GameObjects are the objects based on Archetypes found on maps.
Abstract base class for PluginParameter implementations for which the value is calculated from the st...
Interface for MapArchObjects.
MapFile getMapFile(@NotNull final AbsoluteMapPath mapPath)
Returns a MapFile instance from an AbsoluteMapPath.
MapControl< G, A, R > openMapFile(@NotNull MapFile mapFile, boolean interactive)
Loads a map file.
static final String CURRENT_MAP
The string representation for the current map.
An exception that is thrown if the string representation of value in a {} cannot be converted to an o...
MapControl< G, A, R > getCurrentMap()
Returns the current map.
The location of a map file with a map directory.
Reading and writing of maps, handling of paths.
Currently nothing more than a marker interface for unification.
boolean setStringValue( @NotNull final String stringValue)
Updates the parameter value.
Interface for visitors of PluginParameter instances.
public< T > T visit(@NotNull final PluginParameterVisitor< G, A, R, T > visitor)
void setValueToCurrent()
Selects the current map.