Gridarta Editor
TestArchetypeFactory.java
Go to the documentation of this file.
1
/*
2
* Gridarta MMORPG map editor for Crossfire, Daimonin and similar games.
3
* Copyright (C) 2000-2015 The Gridarta Developers.
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License along
16
* with this program; if not, write to the Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
*/
19
20
package
net.sf.gridarta.model.archetype;
21
22
import
net
.
sf
.
gridarta
.
model
.
anim
.
AnimationObjects
;
23
import
net
.
sf
.
gridarta
.
model
.
face
.
FaceObjectProviders
;
24
import
net
.
sf
.
gridarta
.
model
.
gameobject
.
TestGameObject
;
25
import
net
.
sf
.
gridarta
.
model
.
maparchobject
.
TestMapArchObject
;
26
import
org.jetbrains.annotations.NotNull;
27
32
public
class
TestArchetypeFactory
implements
ArchetypeFactory
<TestGameObject, TestMapArchObject, TestArchetype> {
33
37
@NotNull
38
private
final
FaceObjectProviders
faceObjectProviders
;
39
43
@NotNull
44
private
final
AnimationObjects
animationObjects
;
45
51
public
TestArchetypeFactory
(@NotNull
final
FaceObjectProviders
faceObjectProviders
, @NotNull
final
AnimationObjects
animationObjects
) {
52
this.faceObjectProviders =
faceObjectProviders
;
53
this.animationObjects =
animationObjects
;
54
}
55
56
@Override
57
@NotNull
58
public
TestArchetype
newUndefinedArchetype
(@NotNull
final
String archetypeName) {
59
return
new
TestUndefinedArchetype
(archetypeName,
faceObjectProviders
,
animationObjects
);
60
}
61
62
}
net.sf.gridarta.model.archetype.TestArchetype
Definition:
TestArchetype.java:30
net.sf.gridarta
net.sf.gridarta.model.anim.AnimationObjects
Definition:
AnimationObjects.java:30
net.sf.gridarta.model.archetype.TestArchetypeFactory.TestArchetypeFactory
TestArchetypeFactory(@NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects)
Definition:
TestArchetypeFactory.java:51
net.sf.gridarta.model.gameobject.TestGameObject
Definition:
TestGameObject.java:34
net.sf.gridarta.model.archetype.TestArchetypeFactory.animationObjects
final AnimationObjects animationObjects
Definition:
TestArchetypeFactory.java:44
net.sf
net.sf.gridarta.model.face.FaceObjectProviders
Definition:
FaceObjectProviders.java:46
net.sf.gridarta.model.gameobject
Definition:
AbstractGameObject.java:20
net
net.sf.gridarta.model.archetype.ArchetypeFactory
Definition:
ArchetypeFactory.java:30
net.sf.gridarta.model.archetype.TestArchetypeFactory
Definition:
TestArchetypeFactory.java:32
net.sf.gridarta.model
net.sf.gridarta.model.face
Definition:
AbstractFaceObjects.java:20
net.sf.gridarta.model.anim
Definition:
AbstractAnimationObjects.java:20
net.sf.gridarta.model.maparchobject.TestMapArchObject
Definition:
TestMapArchObject.java:28
net.sf.gridarta.model.maparchobject
Definition:
AbstractMapArchObject.java:20
net.sf.gridarta.model.archetype.TestArchetypeFactory.faceObjectProviders
final FaceObjectProviders faceObjectProviders
Definition:
TestArchetypeFactory.java:38
net.sf.gridarta.model.archetype.TestUndefinedArchetype
Definition:
TestUndefinedArchetype.java:32
net.sf.gridarta.model.archetype.TestArchetypeFactory.newUndefinedArchetype
TestArchetype newUndefinedArchetype(@NotNull final String archetypeName)
Definition:
TestArchetypeFactory.java:58
src
model
src
test
java
net
sf
gridarta
model
archetype
TestArchetypeFactory.java
Generated by
1.8.17