|
Gridarta Editor
|
Regression tests for NamedGameObjectMatcher. More...
Collaboration diagram for net.sf.gridarta.model.match.NamedGameObjectMatcherTest:Public Member Functions | |
| void | testTypeNrsGameObjectMatcher1 () |
| Checks that a NamedGameObjectMatcher works correctly when not using an environment check. More... | |
| void | testTypeNrsGameObjectMatcher2 () |
| Checks that a NamedGameObjectMatcher works correctly when using an environment check. More... | |
Private Member Functions | |
| FaceObjectProviders | newFaceObjectProviders () |
| Creates a new FaceObjectProviders instance. More... | |
Static Private Member Functions | |
| static TestArchetype | newArchetype (@NotNull final String archetypeName, final int typeNo, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects) |
| Creates a new TestArchetype instance. More... | |
| static TestGameObject | newGameObject (@NotNull final GameObjectFactory< TestGameObject, TestMapArchObject, TestArchetype > gameObjectFactory, @NotNull final TestArchetype archetype, @NotNull final String gameObjectName) |
| Creates a new TestGameObject instance. More... | |
| static GameObject<?, ?, ?> | newGameObjects (@NotNull final GameObjectFactory< TestGameObject, TestMapArchObject, TestArchetype > gameObjectFactory, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects, @NotNull final int... typeNumbers) |
| Creates a chain of TestGameObject instances having the given type numbers. More... | |
Private Attributes | |
| final ResourceIcons | resourceIcons = new ResourceIcons() |
| The ResourceIcons instance. More... | |
Regression tests for NamedGameObjectMatcher.
Definition at line 45 of file NamedGameObjectMatcherTest.java.
|
staticprivate |
Creates a new TestArchetype instance.
| archetypeName | the archetype's name |
| typeNo | the archetype's type number |
| faceObjectProviders | the face object providers for looking up faces |
| animationObjects | the animation objects for looking up animations |
Definition at line 112 of file NamedGameObjectMatcherTest.java.
Referenced by net.sf.gridarta.model.match.NamedGameObjectMatcherTest.newGameObjects().
Here is the caller graph for this function:
|
private |
Creates a new FaceObjectProviders instance.
Definition at line 165 of file NamedGameObjectMatcherTest.java.
Referenced by net.sf.gridarta.model.match.NamedGameObjectMatcherTest.testTypeNrsGameObjectMatcher1(), and net.sf.gridarta.model.match.NamedGameObjectMatcherTest.testTypeNrsGameObjectMatcher2().
Here is the caller graph for this function:
|
staticprivate |
Creates a new TestGameObject instance.
| gameObjectFactory | the game object factory to use |
| archetype | the game object's archetype |
| gameObjectName | the game object's name |
Definition at line 126 of file NamedGameObjectMatcherTest.java.
Referenced by net.sf.gridarta.model.match.NamedGameObjectMatcherTest.newGameObjects().
Here is the caller graph for this function:
|
staticprivate |
Creates a chain of 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 use |
| faceObjectProviders | the face object providers for looking up faces |
| animationObjects | the animation objects for looking up animations |
| typeNumbers | the type numbers |
Definition at line 144 of file NamedGameObjectMatcherTest.java.
References net.sf.gridarta.model.match.NamedGameObjectMatcherTest.newArchetype(), and net.sf.gridarta.model.match.NamedGameObjectMatcherTest.newGameObject().
Referenced by net.sf.gridarta.model.match.NamedGameObjectMatcherTest.testTypeNrsGameObjectMatcher1(), and net.sf.gridarta.model.match.NamedGameObjectMatcherTest.testTypeNrsGameObjectMatcher2().
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.model.match.NamedGameObjectMatcherTest.testTypeNrsGameObjectMatcher1 | ( | ) |
Checks that a NamedGameObjectMatcher works correctly when not using an environment check.
Definition at line 58 of file NamedGameObjectMatcherTest.java.
References net.sf.gridarta.model.match.GameObjectMatcher.isMatching(), net.sf.gridarta.model.match.NamedGameObjectMatcherTest.newFaceObjectProviders(), and net.sf.gridarta.model.match.NamedGameObjectMatcherTest.newGameObjects().
Here is the call graph for this function:| void net.sf.gridarta.model.match.NamedGameObjectMatcherTest.testTypeNrsGameObjectMatcher2 | ( | ) |
Checks that a NamedGameObjectMatcher works correctly when using an environment check.
Definition at line 82 of file NamedGameObjectMatcherTest.java.
References net.sf.gridarta.model.match.GameObjectMatcher.isMatching(), net.sf.gridarta.model.match.NamedGameObjectMatcherTest.newFaceObjectProviders(), and net.sf.gridarta.model.match.NamedGameObjectMatcherTest.newGameObjects().
Here is the call graph for this function:
|
private |
The ResourceIcons instance.
Definition at line 51 of file NamedGameObjectMatcherTest.java.