PrintGame
Class LevelHandler
java.lang.Object
PrintGame.LevelHandler
- public class LevelHandler
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LevelHandler
public LevelHandler()
setDocumentBase
public void setDocumentBase(java.net.URL document_base)
loadGameXmlFile
public void loadGameXmlFile(java.lang.String filename)
getNumLevels
public int getNumLevels()
loadLevel
public void loadLevel(int number,
boolean keep_labyrinth)
- loadLevel is used to fill load_labyrinth_ with a LoadLabyrinth object which can be either a new one or a copy of the last one.
- Parameters:
number
- The level choosed in the LabyrinthChoosePanelkeep_labyrinth
- Used to determine if the old labyrinth should be kept or a new one should be generated
getLabyrinthField
public LabyrinthField getLabyrinthField()
getWallPicture
public java.lang.String getWallPicture()
getWayPicture
public java.lang.String getWayPicture()
getRobotPicture
public java.lang.String getRobotPicture()
getDiamondPicture
public java.lang.String getDiamondPicture()
getStartPicture
public java.lang.String getStartPicture()
woar
public boolean woar()