PrintGame
Class LevelHandler

java.lang.Object
  extended byPrintGame.LevelHandler

public class LevelHandler
extends java.lang.Object


Constructor Summary
LevelHandler()
           
 
Method Summary
 java.lang.String getDiamondPicture()
           
 LabyrinthField getLabyrinthField()
           
 int getNumLevels()
           
 java.lang.String getRobotPicture()
           
 java.lang.String getStartPicture()
           
 java.lang.String getWallPicture()
           
 java.lang.String getWayPicture()
           
 void loadGameXmlFile(java.lang.String filename)
           
 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.
 void setDocumentBase(java.net.URL document_base)
           
 boolean woar()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LevelHandler

public LevelHandler()
Method Detail

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 LabyrinthChoosePanel
keep_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()