jurpe.dungeon.crawler
Class RpgMapPoint
java.lang.Object
jurpe.dungeon.crawler.AbstractHexPoint
jurpe.dungeon.crawler.RpgMapPoint
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ViewMapPoint
public class RpgMapPoint
- extends AbstractHexPoint
- implements java.io.Serializable
Coordinates of a point over an RPG map
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
RpgMapPoint
public RpgMapPoint(java.awt.Point c)
- Constructor
- Parameters:
c - Coordinates of this point
RpgMapPoint
public RpgMapPoint(short xx,
short yy)
- Constructor
- Parameters:
xx - x coordinate of pointyy - y coordinate of point
toViewMapPoint
public ViewMapPoint toViewMapPoint(MapView view)
- Transform this point into a ViewMap point
- Parameters:
view - Viewmap
- Returns:
- A ViewMap point
- See Also:
MapView
getDistanceFrom
public int getDistanceFrom(RpgMapPoint point)
- Get distance from this point to another RpgMapPoint
- Parameters:
point -
- Returns:
Copyright ? 2010 http://jurpe.sourceforge.net/ All Rights Reserved.