net.sf.gridarta.model.io
public class TestMapReaderFactory extends Object implements MapReaderFactory<TestGameObject,TestMapArchObject>
MapReaderFactory
implementation for testing purposes.Modifier and Type | Field and Description |
---|---|
private GameObjectParser<TestGameObject,TestMapArchObject,TestArchetype> |
gameObjectParser
The
GameObjectParser instance. |
private MapArchObjectFactory<TestMapArchObject> |
mapArchObjectFactory
The
MapArchObjectFactory instance. |
private MapArchObjectParserFactory<TestMapArchObject> |
mapArchObjectParserFactory
The
MapArchObjectParserFactory instance. |
Constructor and Description |
---|
TestMapReaderFactory(MapArchObjectParserFactory<TestMapArchObject> mapArchObjectParserFactory,
MapArchObjectFactory<TestMapArchObject> mapArchObjectFactory,
GameObjectParser<TestGameObject,TestMapArchObject,TestArchetype> gameObjectParser)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
MapReader<TestGameObject,TestMapArchObject> |
newMapReader(File file)
Create a new
MapReader instance. |
@NotNull private final MapArchObjectParserFactory<TestMapArchObject> mapArchObjectParserFactory
MapArchObjectParserFactory
instance.@NotNull private final MapArchObjectFactory<TestMapArchObject> mapArchObjectFactory
MapArchObjectFactory
instance.@NotNull private final GameObjectParser<TestGameObject,TestMapArchObject,TestArchetype> gameObjectParser
GameObjectParser
instance.public TestMapReaderFactory(@NotNull MapArchObjectParserFactory<TestMapArchObject> mapArchObjectParserFactory, @NotNull MapArchObjectFactory<TestMapArchObject> mapArchObjectFactory, @NotNull GameObjectParser<TestGameObject,TestMapArchObject,TestArchetype> gameObjectParser)
mapArchObjectParserFactory
- the map arch object parser factory
instancemapArchObjectFactory
- the map arch object factory instancegameObjectParser
- the game object parser instance@NotNull public MapReader<TestGameObject,TestMapArchObject> newMapReader(@NotNull File file) throws IOException
MapReader
instance.newMapReader
in interface MapReaderFactory<TestGameObject,TestMapArchObject>
file
- the file to readIOException
- in case the file couldn't be readInvalidMapFormatException
- in case the file is in wrong formatFeedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.