net.sf.gridarta.model.match
public class NamedGameObjectMatcherTest extends Object
NamedGameObjectMatcher
.Modifier and Type | Field and Description |
---|---|
private ResourceIcons |
resourceIcons
The
ResourceIcons instance. |
Constructor and Description |
---|
NamedGameObjectMatcherTest() |
Modifier and Type | Method and Description |
---|---|
private static TestArchetype |
newArchetype(String archetypeName,
int typeNo,
FaceObjectProviders faceObjectProviders,
AnimationObjects animationObjects)
Creates a new
TestArchetype instance. |
private FaceObjectProviders |
newFaceObjectProviders()
Creates a new
FaceObjectProviders instance. |
private static TestGameObject |
newGameObject(TestGameObjectFactory gameObjectFactory,
TestArchetype archetype,
String gameObjectName)
Creates a new
TestGameObject instance. |
private static GameObject<?,?,?> |
newGameObjects(TestGameObjectFactory gameObjectFactory,
FaceObjectProviders faceObjectProviders,
AnimationObjects animationObjects,
int... typeNumbers)
Creates a chain of
TestGameObject instances having the given type
numbers. |
void |
testTypeNrsGameObjectMatcher1()
Checks that a
NamedGameObjectMatcher works correctly when not
using an environment check. |
void |
testTypeNrsGameObjectMatcher2()
Checks that a
NamedGameObjectMatcher works correctly when using
an environment check. |
@Nullable private final ResourceIcons resourceIcons
ResourceIcons
instance.public NamedGameObjectMatcherTest()
public void testTypeNrsGameObjectMatcher1()
NamedGameObjectMatcher
works correctly when not
using an environment check.public void testTypeNrsGameObjectMatcher2()
NamedGameObjectMatcher
works correctly when using
an environment check.@NotNull private static TestArchetype newArchetype(@NotNull String archetypeName, int typeNo, @NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects)
TestArchetype
instance.archetypeName
- the archetype's nametypeNo
- the archetype's type numberfaceObjectProviders
- the face object providers for looking up
facesanimationObjects
- the animation objects for looking up animations@NotNull private static TestGameObject newGameObject(@NotNull TestGameObjectFactory gameObjectFactory, @NotNull TestArchetype archetype, @NotNull String gameObjectName)
TestGameObject
instance.gameObjectFactory
- the game object factory to usearchetype
- the game object's archetypegameObjectName
- the game object's name@NotNull private static GameObject<?,?,?> newGameObjects(@NotNull TestGameObjectFactory gameObjectFactory, @NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects, @NotNull int... typeNumbers)
TestGameObject
instances having the given type
numbers. The first type number is used for the game object; following
type numbers are used for the parent objects.gameObjectFactory
- the game object factory to usefaceObjectProviders
- the face object providers for looking up
facesanimationObjects
- the animation objects for looking up animationstypeNumbers
- the type numbersprivate FaceObjectProviders newFaceObjectProviders()
FaceObjectProviders
instance.Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.