Class DefaultGameObjectParser
- java.lang.Object
-
- net.sf.gridarta.model.io.AbstractGameObjectParser<GameObject,MapArchObject,Archetype>
-
- net.sf.gridarta.var.atrinik.model.io.DefaultGameObjectParser
-
- All Implemented Interfaces:
GameObjectParser<GameObject,MapArchObject,Archetype>
public class DefaultGameObjectParser extends AbstractGameObjectParser<GameObject,MapArchObject,Archetype>
AGameObjectParserfor Atrinik game object instances.
-
-
Constructor Summary
Constructors Constructor Description DefaultGameObjectParser(@NotNull GameObjectFactory<GameObject,MapArchObject,Archetype> gameObjectFactory, @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.util.Map<java.lang.String,java.lang.String>getModifiedFields(@NotNull GameObject gameObject)Returns the modified fields of aGameObject.-
Methods inherited from class net.sf.gridarta.model.io.AbstractGameObjectParser
addModifiedFields, collectTempList, load, load, save
-
-
-
-
Constructor Detail
-
DefaultGameObjectParser
public DefaultGameObjectParser(@NotNull @NotNull GameObjectFactory<GameObject,MapArchObject,Archetype> gameObjectFactory, @NotNull @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet)Creates a new instance.- Parameters:
gameObjectFactory- the game object factory for creating new game object instancesarchetypeSet- the archetype set for looking up archetypes
-
-
Method Detail
-
getModifiedFields
@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.String> getModifiedFields(@NotNull @NotNull GameObject gameObject)Description copied from interface:GameObjectParserReturns the modified fields of aGameObject. These fields are written into map files.- Parameters:
gameObject- the game object- Returns:
- the modified fields in writing order
-
-