20 package net.sf.gridarta.gui.dialog.goexit;
22 import java.awt.Window;
23 import javax.swing.Action;
35 import net.
sf.japi.swing.action.ActionMethod;
36 import org.jetbrains.annotations.NotNull;
90 public GoExitDialogManager(@NotNull
final Window parent, @NotNull
final MapManager<G, A, R> mapManager, @NotNull
final MapViewManager<G, A, R> mapViewManager, @NotNull
final GameObjectMatcher exitGameObjectMatcher, @NotNull
final EnterMap<G, A, R> enterMap, @NotNull
final FaceObjectProviders faceObjectProviders) {
105 if (mapControl == null) {
110 if (mapView == null) {
117 public void setAction(@NotNull
final Action action, @NotNull
final String name) {
final MapManager< G, A, R > mapManager
The map manager to use.
final EnterMap< G, A, R > enterMap
The EnterMap instance to use.
A MapManager manages all opened maps.
Graphical User Interface of Gridarta.
Interface for classes that match GameObjects.
This package contains classes related to matching GameObjects, so called GameObjectMatchers.
final Window parent
The parent Window for go map dialogs.
final GameObjectMatcher exitGameObjectMatcher
The GameObjectMatcher for selecting exits.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
final MapViewManager< G, A, R > mapViewManager
The MapViewManager instance.
GameObjects are the objects based on Archetypes found on maps.
final FaceObjectProviders faceObjectProviders
The FaceObjectProviders for looking up faces.
MapView< G, A, R > getActiveMapView()
Returns the active top map view we are working with.
Base classes for rendering maps.
MapControl< G, A, R > getCurrentMap()
Returns the current map.
Provider for faces of GameObjects and Archetypes.
The face is the appearance of an object.
Currently nothing more than a marker interface for unification.
A map view consists of a map grid and a map cursor, and is attached to a map control.
Helper class for entering maps.
Manager for GoExitDialog instances.
void goExit()
Action method to open the "go exit" dialog.
Interface for MapArchObjects.
A dialog to ask the user for a map to open.
GoExitDialogManager(@NotNull final Window parent, @NotNull final MapManager< G, A, R > mapManager, @NotNull final MapViewManager< G, A, R > mapViewManager, @NotNull final GameObjectMatcher exitGameObjectMatcher, @NotNull final EnterMap< G, A, R > enterMap, @NotNull final FaceObjectProviders faceObjectProviders)
Creates a new instance.