Class DefaultGameObjectFactory
- java.lang.Object
-
- net.sf.gridarta.model.gameobject.AbstractGameObjectFactory<G,A,R>
-
- net.sf.gridarta.model.gameobject.AbstractIsoGameObjectFactory<GameObject,MapArchObject,Archetype>
-
- net.sf.gridarta.var.atrinik.model.gameobject.DefaultGameObjectFactory
-
- All Implemented Interfaces:
GameObjectFactory<GameObject,MapArchObject,Archetype>
public class DefaultGameObjectFactory extends AbstractIsoGameObjectFactory<GameObject,MapArchObject,Archetype>
TheGameObjectFactoryto create Atrinik related game objects.
-
-
Constructor Summary
Constructors Constructor Description DefaultGameObjectFactory(@NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects, @NotNull ArchetypeTypeSet archetypeTypeSet)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull GameObjectcreateGameObject(@NotNull Archetype archetype)Creates a new GameObject from anArchetype.@NotNull GameObjectcreateGameObjectPart(@NotNull Archetype archetype, @Nullable GameObject head)Creates a new GameObject from anArchetype.@NotNull ArchetypenewArchetype(@NotNull java.lang.String archetypeName)Creates a newArchetypeinstance.-
Methods inherited from class net.sf.gridarta.model.gameobject.AbstractIsoGameObjectFactory
cloneGameObject
-
Methods inherited from class net.sf.gridarta.model.gameobject.AbstractGameObjectFactory
cloneMultiGameObject, createInventory
-
-
-
-
Constructor Detail
-
DefaultGameObjectFactory
public DefaultGameObjectFactory(@NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull AnimationObjects animationObjects, @NotNull @NotNull ArchetypeTypeSet archetypeTypeSet)Creates a new instance.- Parameters:
faceObjectProviders- the face object providers to useanimationObjects- the animation objects for looking up animationsarchetypeTypeSet- the archetype type set for looking up archetype types
-
-
Method Detail
-
newArchetype
@NotNull public @NotNull Archetype newArchetype(@NotNull @NotNull java.lang.String archetypeName)
Description copied from interface:GameObjectFactoryCreates a newArchetypeinstance.- Parameters:
archetypeName- the name of the archetype- Returns:
- the new archetype
-
createGameObject
@NotNull public @NotNull GameObject createGameObject(@NotNull @NotNull Archetype archetype)
Description copied from interface:GameObjectFactoryCreates a new GameObject from anArchetype.- Parameters:
archetype- the archetype- Returns:
- the new game object
-
createGameObjectPart
@NotNull public @NotNull GameObject createGameObjectPart(@NotNull @NotNull Archetype archetype, @Nullable @Nullable GameObject head)
Description copied from interface:GameObjectFactoryCreates a new GameObject from anArchetype.- Parameters:
archetype- the archetypehead- the head part to add to- Returns:
- the new game object
-
-