|
Gridarta Editor
|
Interface for classes that read or write GameObject instances. More...
Inheritance diagram for net.sf.gridarta.model.io.GameObjectParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
Collaboration diagram for net.sf.gridarta.model.io.GameObjectParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| void | addModifiedFields (@NotNull G gameObject, @NotNull Map< String, String > fields) |
| Adds the modified fields of a GameObject to a map. More... | |
| void | collectTempList (@NotNull List< G > objects) |
| Browse first through the archetype list and attach map arches to it then browse through the face list and try to find the pictures. More... | |
| Map< String, String > | getModifiedFields (@NotNull G gameObject) |
| Returns the modified fields of a GameObject. More... | |
| G | load (@NotNull BufferedReader reader, @Nullable Collection< G > objects) throws IOException |
| Parse a game object from a stream. More... | |
| G | load (@NotNull BufferedReader reader, @NotNull String firstLine, @Nullable Collection< G > objects) throws IOException |
| Parse a game object from a stream. More... | |
| void | save (@NotNull Appendable appendable, @NotNull G gameObject) throws IOException |
| Write a game object object to a stream. More... | |
Interface for classes that read or write GameObject instances.
Definition at line 37 of file GameObjectParser.java.
| void net.sf.gridarta.model.io.GameObjectParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.addModifiedFields | ( | @NotNull G | gameObject, |
| @NotNull Map< String, String > | fields | ||
| ) |
Adds the modified fields of a GameObject to a map.
| gameObject | the game object |
| fields | the map to update |
| void net.sf.gridarta.model.io.GameObjectParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.collectTempList | ( | @NotNull List< G > | objects | ) |
Browse first through the archetype list and attach map arches to it then browse through the face list and try to find the pictures.
| objects | the list of game objects to collect |
Referenced by net.sf.gridarta.model.resource.AbstractResources<?, ?, ?>.finishRead().
Here is the caller graph for this function:| Map<String, String> net.sf.gridarta.model.io.GameObjectParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getModifiedFields | ( | @NotNull G | gameObject | ) |
Returns the modified fields of a GameObject.
These fields are written into map files.
| gameObject | the game object |
Here is the caller graph for this function:| G net.sf.gridarta.model.io.GameObjectParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.load | ( | @NotNull BufferedReader | reader, |
| @Nullable Collection< G > | objects | ||
| ) | throws IOException |
Parse a game object from a stream.
| reader | the stream to read |
| objects | if non- null |
| IOException | if the stream cannot be read or if a parsing error occurs |
Referenced by net.sf.gridarta.var.atrinik.model.io.ArchetypeParser.processLine(), and net.sf.gridarta.var.crossfire.model.io.ArchetypeParser.processLine().
Here is the caller graph for this function:| G net.sf.gridarta.model.io.GameObjectParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.load | ( | @NotNull BufferedReader | reader, |
| @NotNull String | firstLine, | ||
| @Nullable Collection< G > | objects | ||
| ) | throws IOException |
Parse a game object from a stream.
| reader | the stream to read |
| firstLine | the first line to parse before reading from reader |
| objects | if non- null |
| IOException | if the stream cannot be read or if a parsing error occurs |
| void net.sf.gridarta.model.io.GameObjectParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.save | ( | @NotNull Appendable | appendable, |
| @NotNull G | gameObject | ||
| ) | throws IOException |
Write a game object object to a stream.
| appendable | the stream to write to |
| gameObject | the game object to write |
| IOException | if the stream cannot be written |
Referenced by net.sf.gridarta.model.io.DefaultMapWriter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.encodeMapFile(), net.sf.gridarta.var.atrinik.model.collectable.AtrinikArchetypeSetCollectable.writeArchetype(), and net.sf.gridarta.var.crossfire.model.collectable.CrossfireArchetypeSetCollectable.writeArchetype().
Here is the caller graph for this function: