|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.dungeon.Room
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.
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 |
public Room(int px1, int py1, int px2, int py2)
Method Detail |
public Rectangle getBounds()
public int getX()
public int getY()
public int getWidth()
public int getHeight()
public Point getCenter()
public int getType()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |