public interface ObjectChooser<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
Modifier and Type | Method and Description |
---|---|
void |
addObjectChooserListener(@NotNull ObjectChooserListener<G,A,R> listener)
Adds a listener to be notified.
|
@Nullable BaseObject<G,A,R,?> |
getCursorSelection()
Returns the selected archetype (if the archetype chooser is active) or
the game object selected by the map cursor (if the pickmap chooser) is
active.
|
@Nullable BaseObject<G,A,R,?> |
getSelection()
Returns the active arch in the left-side panel.
|
@NotNull java.util.List<? extends BaseObject<G,A,R,?>> |
getSelections()
Returns the selected arches in the left-side panel.
|
boolean |
isMatching(G gameObject)
Returns whether the current selection matches a given game object.
|
boolean |
isPickmapActive()
Return if the Pickmap Chooser is active.
|
void |
moveArchetypeChooserToFront()
Move the Archetype Chooser in front of the Pickmap Chooser.
|
void |
movePickmapChooserToFront()
Move the Pickmap Chooser in front of the Archetype Chooser.
|
void |
removeObjectChooserListener(@NotNull ObjectChooserListener<G,A,R> listener)
Removes a listener to be notified.
|
boolean isPickmapActive()
true
if the Pickmap Chooser is active, or false
if the Archetype Chooser is active.void moveArchetypeChooserToFront()
void movePickmapChooserToFront()
@Nullable @Nullable BaseObject<G,A,R,?> getCursorSelection()
null
@Nullable @Nullable BaseObject<G,A,R,?> getSelection()
@NotNull @NotNull java.util.List<? extends BaseObject<G,A,R,?>> getSelections()
boolean isMatching(@NotNull G gameObject)
gameObject
- the game object to matchvoid addObjectChooserListener(@NotNull @NotNull ObjectChooserListener<G,A,R> listener)
listener
- the listener to addvoid removeObjectChooserListener(@NotNull @NotNull ObjectChooserListener<G,A,R> listener)
listener
- the listener to remove