 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.panel.gameobjectattributes;
22 import java.util.ArrayList;
23 import java.util.Collection;
27 import org.jetbrains.annotations.NotNull;
28 import org.jetbrains.annotations.Nullable;
45 private final Collection<GameObjectAttributesModelListener<G, A, R>>
listeners =
new ArrayList<>();
69 listener.refreshSelectedGameObject();
Base package of all Gridarta classes.
final Collection< GameObjectAttributesModelListener< G, A, R > > listeners
The registered listeners.
void setSelectedGameObject(@Nullable final G selectedGameObject)
If a game object is selected, the MapArchPanels (bottom right windows) get updated.
Reflects a game object (object on a map).
void fireRefreshSelectedGameObject()
Notifies all listeners that the selected game object has changed.
void removeGameObjectAttributesModelListener(@NotNull final GameObjectAttributesModelListener< G, A, R > listener)
Removes a listener to be notified.
GameObjects are the objects based on Archetypes found on maps.
Interface for MapArchObjects.
The model of the game object attributes dialog.
G selectedGameObject
The selected game object.
void addGameObjectAttributesModelListener(@NotNull final GameObjectAttributesModelListener< G, A, R > listener)
Adds a listener to be notified.
G getSelectedGameObject()
Returns the selected game object.