public class DefaultGameObjectParser extends AbstractGameObjectParser<GameObject,MapArchObject,Archetype>
GameObjectParser
for Atrinik game object
instances.Constructor and Description |
---|
DefaultGameObjectParser(GameObjectFactory<GameObject,MapArchObject,Archetype> gameObjectFactory,
ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getModifiedFields(GameObject gameObject)
Returns the modified fields of a
GameObject . |
addModifiedFields, collectTempList, load, load, parseLine, save
public DefaultGameObjectParser(@NotNull GameObjectFactory<GameObject,MapArchObject,Archetype> gameObjectFactory, @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet)
gameObjectFactory
- the game object factory for creating new game
object instancesarchetypeSet
- the archetype set for looking up archetypes@NotNull public java.util.Map<java.lang.String,java.lang.String> getModifiedFields(@NotNull GameObject gameObject)
GameObject
. These fields are
written into map files.gameObject
- the game object