public class DefaultGameObjectFactory extends AbstractIsoGameObjectFactory<GameObject,MapArchObject,Archetype>
GameObjectFactory
to create
Atrinik related game objects.Constructor and Description |
---|
DefaultGameObjectFactory(@NotNull FaceObjectProviders faceObjectProviders,
@NotNull AnimationObjects animationObjects,
@NotNull ArchetypeTypeSet archetypeTypeSet)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull GameObject |
createGameObject(@NotNull Archetype archetype)
Creates a new GameObject from an
Archetype . |
@NotNull GameObject |
createGameObjectPart(@NotNull Archetype archetype,
@Nullable GameObject head)
Creates a new GameObject from an
Archetype . |
@NotNull Archetype |
newArchetype(@NotNull java.lang.String archetypeName)
Creates a new
Archetype instance. |
cloneGameObject
cloneMultiGameObject, createInventory
public DefaultGameObjectFactory(@NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull AnimationObjects animationObjects, @NotNull @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 @NotNull Archetype newArchetype(@NotNull @NotNull java.lang.String archetypeName)
GameObjectFactory
Archetype
instance.archetypeName
- the name of the archetype@NotNull public @NotNull GameObject createGameObject(@NotNull @NotNull Archetype archetype)
GameObjectFactory
Archetype
.archetype
- the archetype@NotNull public @NotNull GameObject createGameObjectPart(@NotNull @NotNull Archetype archetype, @Nullable @Nullable GameObject head)
GameObjectFactory
Archetype
.archetype
- the archetypehead
- the head part to add to