Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.huguesjohnson.tiamat.graphics
Class MapFactory

    java.lang.Object
      com.huguesjohnson.tiamat.graphics.MapFactory

    public abstract class MapFactory

extends java.lang.Object

MapFactory - Abstract factory to select an appropriate Map for a given file

Author:
  Hugues Johnson

Constructor Summary
`MapFactory()`

Method Summary
`static Map` | `load(java.lang.String path, Formatter formatter)` Chooses an appropriate Map for the given file and loads it, throws UnsupportedMapException if one can not be found.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MapFactory

    public MapFactory()

Method Detail

### load

    public static final Map load(java.lang.String path,
                                 Formatter formatter)
                          throws UnsupportedMapException

  Chooses an appropriate Map for the given file and loads it, throws UnsupportedMapException if one can not be found.

  Parameters:
    `path` - The path of the Map to load.
    `formatter` - The Formatted used to deserialize the Map.
  Returns:
    A deserialized instance of Map.
  Throws:
    `UnsupportedMapException` - If the file can not be deserialized.

Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hugues Johnson