|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.adom.jade.world.maps.MapArea
Memorizes the coordinates of a rectangular map area. This class is usually used to report map updates.
| Field Summary | |
|---|---|
int |
x1
the left coordinate of the map area |
int |
x2
the right coordinate of the map area |
int |
y1
the upper coordinate of the map area |
int |
y2
the lower coordinate of the map area |
| Constructor Summary | |
|---|---|
MapArea()
Creates a new map area instance. // * @param aMap the map to which this map area belongs |
|
| Method Summary | |
|---|---|
boolean |
isUpdated()
Determines whether this area has seen any updates. |
void |
reset()
Resets the map area to an uninitialized area. |
void |
setUpdatePoint(int x,
int y)
Memorizes an update point. |
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 |
| Field Detail |
|---|
public int x1
public int y1
public int x2
public int y2
| Constructor Detail |
|---|
public MapArea()
| Method Detail |
|---|
public void reset()
public void setUpdatePoint(int x,
int y)
reset
are included. After a call to reset this method must be
called at least once for the coordinates to hold meaningful values.
x - the x coordinate of the update pointy - the y coordinate of the update pointpublic boolean isUpdated()
public 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 | |||||||||