net.sf.gridarta.model.gameobject
public class TestGameObjectFactory extends AbstractGameObjectFactory<TestGameObject,TestMapArchObject,TestArchetype>
GameObjectFactory
for regression tests.Modifier and Type | Field and Description |
---|---|
private AnimationObjects |
animationObjects
The
AnimationObjects for looking up animations. |
private FaceObjectProviders |
faceObjectProviders
The
FaceObjectProviders to use. |
Constructor and Description |
---|
TestGameObjectFactory(FaceObjectProviders faceObjectProviders,
AnimationObjects animationObjects)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
TestGameObject |
cloneGameObject(TestGameObject gameObject)
Creates a copy of a game object.
|
TestGameObject |
createGameObject(TestArchetype archetype)
Creates a new GameObject from an
Archetype . |
TestGameObject |
createGameObjectPart(TestArchetype archetype,
TestGameObject head)
Creates a new GameObject from an
Archetype . |
TestArchetype |
newArchetype(String archetypeName)
Creates a new
Archetype instance. |
cloneMultiGameObject, createInventory
@NotNull private final FaceObjectProviders faceObjectProviders
FaceObjectProviders
to use.@NotNull private final AnimationObjects animationObjects
AnimationObjects
for looking up animations.public TestGameObjectFactory(@NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects)
faceObjectProviders
- the face object providers to useanimationObjects
- the animation objects for looking up animations@NotNull public TestArchetype newArchetype(@NotNull String archetypeName)
Archetype
instance.archetypeName
- the name of the archetype@NotNull public TestGameObject createGameObject(@NotNull TestArchetype archetype)
Archetype
.archetype
- the archetype@NotNull public TestGameObject createGameObjectPart(@NotNull TestArchetype archetype, @Nullable TestGameObject head)
Archetype
.archetype
- the archetypehead
- the head part to add to@NotNull public TestGameObject cloneGameObject(@NotNull TestGameObject gameObject)
gameObject
- the game object to copyFeedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.