public class GameObjectAttributesModel<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
Constructor and Description |
---|
GameObjectAttributesModel() |
Modifier and Type | Method and Description |
---|---|
void |
addGameObjectAttributesModelListener(@NotNull GameObjectAttributesModelListener<G,A,R> listener)
Adds a listener to be notified.
|
void |
fireRefreshSelectedGameObject()
Notifies all listeners that the selected game object has changed.
|
G |
getSelectedGameObject()
Returns the selected game object.
|
void |
removeGameObjectAttributesModelListener(@NotNull GameObjectAttributesModelListener<G,A,R> listener)
Removes a listener to be notified.
|
void |
setSelectedGameObject(G selectedGameObject)
If a game object is selected, the MapArchPanels (bottom right windows)
get updated.
|
public void setSelectedGameObject(@Nullable G selectedGameObject)
selectedGameObject
- the selected game objectpublic void fireRefreshSelectedGameObject()
@Nullable public G getSelectedGameObject()
public void addGameObjectAttributesModelListener(@NotNull @NotNull GameObjectAttributesModelListener<G,A,R> listener)
listener
- the listenerpublic void removeGameObjectAttributesModelListener(@NotNull @NotNull GameObjectAttributesModelListener<G,A,R> listener)
listener
- the listener