public class DefaultGameObjectFactory extends AbstractIsoGameObjectFactory<GameObject,MapArchObject,Archetype>
GameObjectFactory
to create
Atrinik related game objects.Constructor and Description |
---|
DefaultGameObjectFactory(FaceObjectProviders faceObjectProviders,
AnimationObjects animationObjects,
ArchetypeTypeSet archetypeTypeSet)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
GameObject |
createGameObject(Archetype archetype)
Creates a new GameObject from an
Archetype . |
GameObject |
createGameObjectPart(Archetype archetype,
GameObject head)
Creates a new GameObject from an
Archetype . |
Archetype |
newArchetype(java.lang.String archetypeName)
Creates a new
Archetype instance. |
cloneGameObject
cloneMultiGameObject, createInventory
public DefaultGameObjectFactory(@NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects, @NotNull ArchetypeTypeSet archetypeTypeSet)
faceObjectProviders
- the face object providers to useanimationObjects
- the animation objects for looking up animationsarchetypeTypeSet
- the archetype type set for looking up archetype
types@NotNull public Archetype newArchetype(@NotNull java.lang.String archetypeName)
Archetype
instance.archetypeName
- the name of the archetype@NotNull public GameObject createGameObject(@NotNull Archetype archetype)
Archetype
.archetype
- the archetype@NotNull public GameObject createGameObjectPart(@NotNull Archetype archetype, @Nullable GameObject head)
Archetype
.archetype
- the archetypehead
- the head part to add to