public class DungeonDataLoader extends Object
| Constructor and Description |
|---|
DungeonDataLoader() |
| Modifier and Type | Method and Description |
|---|---|
static Set<Integer> |
getImpassableSet(String filename)
Returns the set of impassible tiles for the dungeon stored in
the provided file.
|
static SpriteMap |
loadSpriteMap(String filename,
int spriteSize)
Loads a sprite map file.
|
static void |
setupDungeons(String root,
String filename,
Lobby lobby,
GameChangeManager gcm)
This will load the given file, and use its contents to load all
the dungeons and sprite maps, handling all registration and task
installation required.
|
public static void setupDungeons(String root, String filename, Lobby lobby, GameChangeManager gcm) throws IOException
filename - the file to start loadinglobbyRef - a reference to the lobbygcmRef - a reference to the game change managerIOExceptionpublic static SpriteMap loadSpriteMap(String filename, int spriteSize) throws IOException
filename - the graphics file containing the spritesspriteSize - the size of each spriteIOExceptionpublic static Set<Integer> getImpassableSet(String filename) throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.