de.adom.jade.world.maps
Class MazeMap

java.lang.Object
  extended by de.adom.jade.world.maps.Map
      extended by de.adom.jade.world.maps.UndergroundMap
          extended by de.adom.jade.world.maps.MazeMap
All Implemented Interfaces:
java.io.Serializable

public class MazeMap
extends UndergroundMap

Implements a maze that is completely made up from tunnels.

See Also:
Serialized Form

Constructor Summary
MazeMap(Location theLocation, int theWidth, int theHeight, boolean finite)
          Creates a maze.
 
Method Summary
 void buildMaze(int x, int y)
          Builds the maze by digging a lot of tunnels.
 
Methods inherited from class de.adom.jade.world.maps.Map
addArea, addMapListener, attach, buildConnections, fireMapUpdated, getAreas, getBeing, getDirectionalXModifier, getDirectionalYModifier, getDistance, getDX, getDY, getHeight, getLocation, getMapView, getOpenBuilderTile, getRandomX, getRandomY, getSightRange, getTile, getVisibilityBlockadeLevel, getWidth, getWrappedX, getWrappedY, isDark, isEmpty, isFinite, isValidPosition, placeAreas, removeBeing, removeMapListener, setBeing, setDark, setPointOfView, setTile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MazeMap

public MazeMap(Location theLocation,
               int theWidth,
               int theHeight,
               boolean finite)
Creates a maze.

Parameters:
theLocation -
theWidth -
theHeight -
finite -
Method Detail

buildMaze

public void buildMaze(int x,
                      int y)
Builds the maze by digging a lot of tunnels.

Parameters:
x - the x position of the current location
y - the ys position of the current location