|
Gridarta Editor
|
Default implementation of MapReader. More...
Inheritance diagram for net.sf.gridarta.model.io.DefaultMapReader< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
Collaboration diagram for net.sf.gridarta.model.io.DefaultMapReader< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| DefaultMapReader (@NotNull final MapArchObjectParserFactory< A > mapArchObjectParserFactory, @NotNull final MapArchObjectFactory< A > mapArchObjectFactory, @NotNull final GameObjectParser< G, A, R > gameObjectParser, @NotNull final File file) throws IOException | |
| Open a file for reading it as a map. More... | |
| List< G > | getGameObjects () |
| A | getMapArchObject () |
Public Member Functions inherited from net.sf.gridarta.model.io.MapReader< G, A > | |
| List< G > | getGameObjects () |
| Return the decoded game objects. More... | |
| A | getMapArchObject () |
| Returns the MapArchObject read from this MapFileDecode. More... | |
Private Attributes | |
| final A | mapArchObject |
| Contains the map arch object. More... | |
| final List< G > | objects = new ArrayList<>() |
| ArchObjects that are read from the map. More... | |
Default implementation of MapReader.
Definition at line 42 of file DefaultMapReader.java.
| net.sf.gridarta.model.io.DefaultMapReader< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.DefaultMapReader | ( | @NotNull final MapArchObjectParserFactory< A > | mapArchObjectParserFactory, |
| @NotNull final MapArchObjectFactory< A > | mapArchObjectFactory, | ||
| @NotNull final GameObjectParser< G, A, R > | gameObjectParser, | ||
| @NotNull final File | file | ||
| ) | throws IOException |
Open a file for reading it as a map.
| mapArchObjectParserFactory | the map arch object parser factory instance |
| mapArchObjectFactory | the map arch object factory instance |
| gameObjectParser | the game object parser instance |
| file | the file to open |
| IOException | in case the file couldn't be read |
| InvalidMapFormatException | in case the file is in wrong format |
Definition at line 66 of file DefaultMapReader.java.
References net.sf.gridarta.utils.IOUtils.MAP_ENCODING.
| List<G> net.sf.gridarta.model.io.DefaultMapReader< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getGameObjects | ( | ) |
Definition at line 89 of file DefaultMapReader.java.
Referenced by net.sf.gridarta.model.io.DefaultMapReaderTest.testReorderMultiSquares().
Here is the caller graph for this function:| A net.sf.gridarta.model.io.DefaultMapReader< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapArchObject | ( | ) |
|
private |
Contains the map arch object.
Definition at line 54 of file DefaultMapReader.java.
|
private |
ArchObjects that are read from the map.
Definition at line 48 of file DefaultMapReader.java.