|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--be.madoka.aardbei.sokoban.logic.loader.XMLSokoLoader
Constructor Summary | |
XMLSokoLoader(SokoLogic logic,
java.lang.String fileName)
Default constructor. |
Method Summary | |
World |
getWorld(int level)
Loads the World belonging to the given level. |
boolean |
hasMoreWorlds()
Tests if another World is available. |
boolean |
hasWorld(int level)
Tests if the requested World is available. |
World |
nextWorld()
Loads the next World. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLSokoLoader(SokoLogic logic, java.lang.String fileName)
fileName
- the fileNameMethod Detail |
public boolean hasMoreWorlds()
SokoLoader
hasMoreWorlds
in interface SokoLoader
boolean
specifying if at least one more world can be loadedpublic World nextWorld()
SokoLoader
nextWorld
in interface SokoLoader
World
public World getWorld(int level)
SokoLoader
getWorld
in interface SokoLoader
level
- the level
World
public boolean hasWorld(int level)
SokoLoader
hasWorld
in interface SokoLoader
boolean
specifying if the requested level is available
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |