Gridarta Editor
src
model
src
test
java
net
sf
gridarta
model
io
TestGameObjectParser.java
Go to the documentation of this file.
1
/*
2
* Gridarta MMORPG map editor for Crossfire, Daimonin and similar games.
3
* Copyright (C) 2000-2023 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.io;
21
22
import
java.util.LinkedHashMap;
23
import
java.util.Map;
24
import
net
.
sf
.
gridarta
.
model
.
archetype
.
TestArchetype
;
25
import
net
.
sf
.
gridarta
.
model
.
archetypeset
.
ArchetypeSet
;
26
import
net
.
sf
.
gridarta
.
model
.
gameobject
.
GameObjectFactory
;
27
import
net
.
sf
.
gridarta
.
model
.
gameobject
.
TestGameObject
;
28
import
net
.
sf
.
gridarta
.
model
.
maparchobject
.
TestMapArchObject
;
29
import
org.jetbrains.annotations.NotNull;
30
35
public
class
TestGameObjectParser
extends
AbstractGameObjectParser
<TestGameObject, TestMapArchObject, TestArchetype> {
36
43
public
TestGameObjectParser
(@NotNull
final
GameObjectFactory<TestGameObject, TestMapArchObject, TestArchetype>
gameObjectFactory
, @NotNull
final
ArchetypeSet<TestGameObject, TestMapArchObject, TestArchetype>
archetypeSet
) {
44
super(
gameObjectFactory
,
archetypeSet
);
45
}
46
47
@NotNull
48
@Override
49
public
Map<String, String>
getModifiedFields
(@NotNull
final
TestGameObject
gameObject) {
50
final
Map<String, String> fields =
new
LinkedHashMap<>();
51
addModifiedFields
(gameObject, fields);
52
return
fields;
53
}
54
55
}
net.sf.gridarta.model.io.TestGameObjectParser.TestGameObjectParser
TestGameObjectParser(@NotNull final GameObjectFactory< TestGameObject, TestMapArchObject, TestArchetype > gameObjectFactory, @NotNull final ArchetypeSet< TestGameObject, TestMapArchObject, TestArchetype > archetypeSet)
Definition:
TestGameObjectParser.java:43
net.sf.gridarta.model.gameobject.TestGameObject
Definition:
TestGameObject.java:34
net.sf.gridarta
net.sf.gridarta.model.archetype.TestArchetype
Definition:
TestArchetype.java:30
net.sf
net.sf.gridarta.model.io.AbstractGameObjectParser
Definition:
AbstractGameObjectParser.java:49
net.sf.gridarta.model.archetype
Definition:
AbstractArchetype.java:20
net.sf.gridarta.model.io.AbstractGameObjectParser< TestGameObject, TestMapArchObject, TestArchetype >::addModifiedFields
void addModifiedFields( @NotNull final G gameObject, @NotNull final Map< String, String > fields)
Definition:
AbstractGameObjectParser.java:220
net.sf.gridarta.model.gameobject.GameObjectFactory
Definition:
GameObjectFactory.java:31
net.sf.gridarta.model.gameobject
Definition:
AbstractGameObject.java:20
net
net.sf.gridarta.model.io.AbstractGameObjectParser< TestGameObject, TestMapArchObject, TestArchetype >::gameObjectFactory
final GameObjectFactory< G, A, R > gameObjectFactory
Definition:
AbstractGameObjectParser.java:60
net.sf.gridarta.model.archetypeset.ArchetypeSet
Definition:
ArchetypeSet.java:37
net.sf.gridarta.model.io.AbstractGameObjectParser< TestGameObject, TestMapArchObject, TestArchetype >::archetypeSet
final ArchetypeSet< G, A, R > archetypeSet
Definition:
AbstractGameObjectParser.java:66
net.sf.gridarta.model
net.sf.gridarta.model.io.TestGameObjectParser
Definition:
TestGameObjectParser.java:35
net.sf.gridarta.model.maparchobject.TestMapArchObject
Definition:
TestMapArchObject.java:28
net.sf.gridarta.model.maparchobject
Definition:
AbstractMapArchObject.java:20
net.sf.gridarta.model.archetypeset
Definition:
ArchetypeSet.java:20
net.sf.gridarta.model.io.TestGameObjectParser.getModifiedFields
Map< String, String > getModifiedFields(@NotNull final TestGameObject gameObject)
Definition:
TestGameObjectParser.java:49
Generated by
1.8.17