|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.PointCache
Maintains a cache of Point objects for use in looking up things in maps. Rather than creating a new Point object for a lookup, call getPoint(x, y) to fetch a reference to a shared Point object. Just make sure never to change the (x) or (y) value for any of these points, or you'll get undefined results.
Method Summary | |
static Point |
getPoint(int x,
int y)
Returns the cached Point at (x, y). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Point getPoint(int x, int y)
x
- the point x valuey
- the point y value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |