 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.archetypeset;
22 import java.util.Collection;
29 import org.jetbrains.annotations.NotNull;
30 import org.jetbrains.annotations.Nullable;
R getArchetype(@NotNull String archetypeName)
Returns an Archetype by its name.
Base package of all Gridarta classes.
Exception thrown if an Archetype does not exist.
void setLoadedFromArchive(boolean loadedFromArchive)
Sets whether Archetypes were loaded from an archive.
Interface for listeners listening to ArchetypeSet changes.
Reflects a game object (object on a map).
void addArchetypeSetListener(@NotNull ArchetypeSetListener< G, A, R > listener)
Registers an ArchetypeSetListener.
GameObjects are the objects based on Archetypes found on maps.
void addArchetype(@NotNull R archetype)
Adds an Archetype to this Set.
int getArchetypeCount()
Returns the number of Archetypes available.
String getImageSet()
Returns the image set.
Interface for MapArchObjects.
Interface that captures similarities between different ArchetypeSet implementations.
Collection< R > getArchetypes()
Returns a read-only collection of all Archetypes.
boolean isLoadedFromArchive()
Returns whether the Archetypes in this ArchetypeSet were loaded from an archive.
R getOrCreateArchetype(@NotNull String archetypeName)
Returns an archetype by its name.
void removeArchetypeSetListener(@NotNull ArchetypeSetListener< G, A, R > listener)
Removes an ArchetypeSetListener.
An Exception indicating that an Archetype name is not unique.