PrintGame
Class LoadLabyrinth

java.lang.Object
  extended byPrintGame.LoadLabyrinth

public class LoadLabyrinth
extends java.lang.Object

class representing a two dimensional labyrinth


Field Summary
protected  CreateLabyrinth create_labyrinth_
           
protected  LabyrinthField labyrinth_field_
           
protected  LabyrinthXMLContentHandler labyrinth_xml_content_handler_
           
protected  int max_col_
          the max number of cols max_col_=cols-1
protected  int max_row_
          the max number of rows max_row_=rows-1
 
Constructor Summary
LoadLabyrinth(LoadLabyrinth lab)
           
LoadLabyrinth(java.lang.String filename, java.net.URL document_base)
          Standard constructor
 
Method Summary
 java.lang.String getDiamondPicture()
           
 LabyrinthField getLabyrinthField()
           
 java.lang.String getRobotPicture()
           
 java.lang.String getStartPicture()
           
 java.lang.String getWallPicture()
           
 java.lang.String getWayPicture()
           
 boolean isStyle()
           
 java.lang.String toString()
          standard toString method for debugging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

max_row_

protected int max_row_
the max number of rows max_row_=rows-1


max_col_

protected int max_col_
the max number of cols max_col_=cols-1


labyrinth_field_

protected LabyrinthField labyrinth_field_

create_labyrinth_

protected CreateLabyrinth create_labyrinth_

labyrinth_xml_content_handler_

protected LabyrinthXMLContentHandler labyrinth_xml_content_handler_
Constructor Detail

LoadLabyrinth

public LoadLabyrinth(LoadLabyrinth lab)

LoadLabyrinth

public LoadLabyrinth(java.lang.String filename,
                     java.net.URL document_base)
              throws java.lang.IllegalArgumentException
Standard constructor

Parameters:
filename - name of the XML file to load
Throws:
java.lang.IllegalArgumentException - if the specified file can't be found
Method Detail

getLabyrinthField

public LabyrinthField getLabyrinthField()

toString

public java.lang.String toString()
standard toString method for debugging

Returns:
info about the labyrinth field in string-format

isStyle

public boolean isStyle()

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