wyvern.kernel.dungeon
Class Room

java.lang.Object
  extended bywyvern.kernel.dungeon.Room

public class Room
extends java.lang.Object

Generated dungeons keep track of their rooms after the dungeon has been created, so monsters and items can be placed later. This class encapsulates one room.

Version:
1.0, Nov 15, 1999
Author:
Kiz

Constructor Summary
Room(int px1, int py1, int px2, int py2)
           
 
Method Summary
 Rectangle getBounds()
           
 Point getCenter()
          Returns the center of the room.
 int getHeight()
          Returns room height.
 int getType()
          Returns the room type
 int getWidth()
          Returns room width.
 int getX()
          Returns X coordinate (left side).
 int getY()
          Returns Y coordinate (top side).
 java.lang.String toString()
          Prints the room.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Room

public Room(int px1,
            int py1,
            int px2,
            int py2)
Method Detail

getBounds

public Rectangle getBounds()

getX

public int getX()
Returns X coordinate (left side).


getY

public int getY()
Returns Y coordinate (top side).


getWidth

public int getWidth()
Returns room width.


getHeight

public int getHeight()
Returns room height.


getCenter

public Point getCenter()
Returns the center of the room.


getType

public int getType()
Returns the room type

Returns:
a DungeonConstants.RoomType

toString

public java.lang.String toString()
Prints the room.