Package net.sf.gridarta.model.io
Class DefaultMapReaderFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.io.DefaultMapReaderFactory<G,A,R>
-
- All Implemented Interfaces:
MapReaderFactory<G,A>
public class DefaultMapReaderFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements MapReaderFactory<G,A>
Default implementation ofMapReaderFactory.
-
-
Constructor Summary
Constructors Constructor Description DefaultMapReaderFactory(@NotNull MapArchObjectFactory<A> mapArchObjectFactory, @NotNull MapArchObjectParserFactory<A> mapArchObjectParserFactory, @NotNull GameObjectParserFactory<G,A,R> gameObjectParserFactory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull MapReader<G,A>newMapReader(@NotNull java.io.File file)Creates a newMapReaderinstance.
-
-
-
Constructor Detail
-
DefaultMapReaderFactory
public DefaultMapReaderFactory(@NotNull @NotNull MapArchObjectFactory<A> mapArchObjectFactory, @NotNull @NotNull MapArchObjectParserFactory<A> mapArchObjectParserFactory, @NotNull @NotNull GameObjectParserFactory<G,A,R> gameObjectParserFactory)Creates a new instance.- Parameters:
mapArchObjectFactory- the map arch object factory instancemapArchObjectParserFactory- the map arch object parser factory instancegameObjectParserFactory- the game object parser factory instance
-
-
Method Detail
-
newMapReader
@NotNull public @NotNull MapReader<G,A> newMapReader(@NotNull @NotNull java.io.File file) throws java.io.IOException
Description copied from interface:MapReaderFactoryCreates a newMapReaderinstance.- Specified by:
newMapReaderin interfaceMapReaderFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>>- Parameters:
file- the file to read- Returns:
- the new instance
- Throws:
java.io.IOException- in case the file couldn't be readInvalidMapFormatException- in case the file is in wrong format
-
-