|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.adom.jade.world.maps.Area
Defines an enclosed rectangular area on the map that possesses certain special qualitities.
| Constructor Summary | |
|---|---|
Area(int lx,
int ly,
int rx,
int ry,
java.lang.String description)
Defines an area. |
|
| Method Summary | |
|---|---|
boolean |
canEnter(Being being)
Checks whether the given being can enter the area. |
boolean |
canExit(Being being)
Checks whether the given being can exit the area. |
boolean |
contains(int x,
int y)
Checks whether a given position is contained in an area. |
void |
drawOn(Map map)
Draws the area on the given map. |
java.lang.String |
getDescription()
Returns the description of the area. |
int |
getX1()
Returns the left x coordinate of the area |
int |
getX2()
Returns the right x coordinate of the area |
int |
getY1()
Returns the left y coordinate of the area |
int |
getY2()
Returns the right y coordinate of the area |
boolean |
isEnteredBy(Being being)
Checks whether the given being can enter the area. |
boolean |
isExitedBy(Being being)
Checks whether the given being can exit the area. |
java.lang.String |
toString()
Returns a string representation of this area. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Area(int lx,
int ly,
int rx,
int ry,
java.lang.String description)
lx - the left x coordinate of the arealy - the left y coordinate of the arearx - the right x coordinate of the areary - the right y coordinate of the areadescripion - the description of the area| Method Detail |
|---|
public int getX1()
public int getY1()
public int getX2()
public int getY2()
public java.lang.String getDescription()
public boolean isExitedBy(Being being)
being - the being
public boolean isEnteredBy(Being being)
being - the being
public boolean canEnter(Being being)
being - the being
public boolean canExit(Being being)
being - the being
public boolean contains(int x,
int y)
x - the x positiony - the y position
public void drawOn(Map map)
map - the map to draw the area uponpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||