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>
MapReaderFactory
.Constructor and Description |
---|
DefaultMapReaderFactory(@NotNull MapArchObjectFactory<A> mapArchObjectFactory,
@NotNull MapArchObjectParserFactory<A> mapArchObjectParserFactory,
@NotNull GameObjectParserFactory<G,A,R> gameObjectParserFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull MapReader<G,A> |
newMapReader(@NotNull java.io.File file)
Creates a new
MapReader instance. |
public DefaultMapReaderFactory(@NotNull @NotNull MapArchObjectFactory<A> mapArchObjectFactory, @NotNull @NotNull MapArchObjectParserFactory<A> mapArchObjectParserFactory, @NotNull @NotNull GameObjectParserFactory<G,A,R> gameObjectParserFactory)
mapArchObjectFactory
- the map arch object factory instancemapArchObjectParserFactory
- the map arch object parser factory
instancegameObjectParserFactory
- the game object parser factory instance@NotNull public @NotNull MapReader<G,A> newMapReader(@NotNull @NotNull java.io.File file) throws java.io.IOException
MapReaderFactory
MapReader
instance.newMapReader
in interface MapReaderFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>>
file
- the file to readjava.io.IOException
- in case the file couldn't be readInvalidMapFormatException
- in case the file is in wrong format