public class DefaultGameObjectParser extends AbstractGameObjectParser<GameObject,MapArchObject,Archetype>
GameObjectParser
for Crossfire game object
instances.Constructor and Description |
---|
DefaultGameObjectParser(GameObjectFactory<GameObject,MapArchObject,Archetype> gameObjectFactory,
ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet,
ArchetypeTypeSet archetypeTypeSet)
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, @NotNull ArchetypeTypeSet archetypeTypeSet)
gameObjectFactory
- the game object factory for creating new game
object instancesarchetypeSet
- the archetype set for looking up archetypesarchetypeTypeSet
- the archetype type set for sorting attributes on
save@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