public class DefaultArchetypeFactory extends java.lang.Object implements ArchetypeFactory<GameObject,MapArchObject,Archetype>
ArchetypeFactory
creating Crossfire objects.Constructor and Description |
---|
DefaultArchetypeFactory(FaceObjectProviders faceObjectProviders,
AnimationObjects animationObjects)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Archetype |
newUndefinedArchetype(java.lang.String archetypeName)
Creates a new undefined archetype instance.
|
public DefaultArchetypeFactory(@NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects)
faceObjectProviders
- the face object providers for looking up
facesanimationObjects
- the animation objects for looking up animations@NotNull public Archetype newUndefinedArchetype(@NotNull java.lang.String archetypeName)
newUndefinedArchetype
in interface ArchetypeFactory<GameObject,MapArchObject,Archetype>
archetypeName
- the archetype name