 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.action;
22 import javax.swing.Action;
31 import net.
sf.japi.swing.action.ActionMethod;
32 import org.jetbrains.annotations.NotNull;
33 import org.jetbrains.annotations.Nullable;
76 public void mapCreated(@NotNull
final MapControl<G, A, R> mapControl,
final boolean interactive) {
125 if (mapControl ==
null) {
A MapManager manages all opened maps.
MapControl< G, A, R > currentMapControl
The last known active map, or.
Base package of all Gridarta classes.
MapManagerListener< G, A, R > newMapManagerListener()
Creates a new MapManagerListener that refreshes the actions when the current map changes.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
Interface for listeners listening to MapManager changes.
Action action
The Action associated with this editor action.
boolean doValidateMap(final boolean performAction)
Executes the "validate map" action.
ValidateMapAction(@NotNull final DelegatingMapValidator< G, A, R > validators, @NotNull final MapManager< G, A, R > mapManager)
Creates a new instance.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
Interface for MapArchObjects.
This package contains the framework for validating maps.
void validateMap()
Runs the map validator on the current map.
void validateAll(@NotNull final MapModel< G, A, R > mapModel)
Performs all validations on a map.
An EditorAction that runs the map validator on the current map.
Currently nothing more than a marker interface for unification.
MapModel< G, A, R > getMapModel()
Returns the map model.
A Map Validator that delegates to other MapValidators.
void updateActions()
Updates the state of the action.
final DelegatingMapValidator< G, A, R > validators
The map validators.