20 package net.sf.gridarta.action;
22 import java.awt.Component;
23 import javax.swing.Action;
24 import javax.swing.JOptionPane;
33 import net.
sf.japi.swing.action.ActionMethod;
34 import org.jetbrains.annotations.NotNull;
66 if (mapControl == null) {
67 JOptionPane.showMessageDialog(parent,
"No map loaded! Please load a map!!",
"Error", JOptionPane.ERROR_MESSAGE);
74 public void setAction(@NotNull
final Action action, @NotNull
final String name) {
A MapManager manages all opened maps.
Graphical User Interface of Gridarta.
MapRenderer newSimpleMapRenderer(@NotNull MapModel< G, A, R > mapModel)
Creates a new map renderer instance which paints only squares but no grid, cursor, selection, or errors.
MapModel< G, A, R > getMapModel()
Returns the map model.
final MapManager< G, A, R > mapManager
Base package of all Gridarta classes.
Reflects a game object (object on a map).
final RendererFactory< G, A, R > rendererFactory
GameObjects are the objects based on Archetypes found on maps.
ZoomAction(@NotNull final MapManager< G, A, R > mapManager, @NotNull final RendererFactory< G, A, R > rendererFactory, @NotNull final Component parent)
Creates a new instance.
Base classes for rendering maps.
MapControl< G, A, R > getCurrentMap()
Returns the current map.
Factory for creating MapRenderer instances.
Currently nothing more than a marker interface for unification.
The map preview of the level editor.
Interface for MapArchObjects.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
void zoom()
The action method for "zoom".