de.adom.jade.world.maps
Class WalledArea

java.lang.Object
  extended by de.adom.jade.world.maps.Area
      extended by de.adom.jade.world.maps.WalledArea
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Room

public abstract class WalledArea
extends Area

Creates an area that is walled by some means.

See Also:
Serialized Form

Constructor Summary
WalledArea(int lx, int ly, int rx, int ry, java.lang.String description)
          Defines a walled area.
 
Method Summary
 void drawOn(Map map)
          Draws the area on the given map.
 
Methods inherited from class de.adom.jade.world.maps.Area
canEnter, canExit, contains, getDescription, getX1, getX2, getY1, getY2, isEnteredBy, isExitedBy, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WalledArea

public WalledArea(int lx,
                  int ly,
                  int rx,
                  int ry,
                  java.lang.String description)
Defines a walled area.

Parameters:
lx - the left x coordinate of the area
ly - the left y coordinate of the area
rx - the right x coordinate of the area
ry - the right y coordinate of the area
descripion - the description of the area
Method Detail

drawOn

public void drawOn(Map map)
Draws the area on the given map. The area object will place all appropriate tiles on the map. An area consisting of floor tiles and surrounded by walls will be drawn.

Overrides:
drawOn in class Area
Parameters:
map - the map to draw the area upon