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