Java Universal Role Playing Engine Version 0.3.9

jurpe.dungeon.crawler
Class RpgMapPoint

java.lang.Object
  extended by jurpe.dungeon.crawler.AbstractHexPoint
      extended by 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

Field Summary
 
Fields inherited from class jurpe.dungeon.crawler.AbstractHexPoint
x, y
 
Constructor Summary
RpgMapPoint(java.awt.Point c)
          Constructor
RpgMapPoint(short xx, short yy)
          Constructor
 
Method Summary
 int getDistanceFrom(RpgMapPoint point)
          Get distance from this point to another RpgMapPoint
 ViewMapPoint toViewMapPoint(MapView view)
          Transform this point into a ViewMap point
 
Methods inherited from class jurpe.dungeon.crawler.AbstractHexPoint
equals, hashCode, toPoint, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 point
yy - y coordinate of point
Method Detail

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:

Java Universal Role Playing Engine Version 0.3.9

Copyright ? 2010 http://jurpe.sourceforge.net/ All Rights Reserved.