com.empireclassic.Remote
Class WorldCoord
java.lang.Object
java.awt.geom.Point2D
java.awt.Point
com.empireclassic.Remote.WorldCoord
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
public class WorldCoord
- extends java.awt.Point
- implements java.lang.Comparable
- Author:
- chas
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.awt.geom.Point2D |
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float |
Fields inherited from class java.awt.Point |
x, y |
Methods inherited from class java.awt.Point |
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, translate |
Methods inherited from class java.awt.geom.Point2D |
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
WorldCoord
public WorldCoord()
WorldCoord
public WorldCoord(java.awt.Point p)
- Parameters:
p
-
WorldCoord
public WorldCoord(double x,
double y)
WorldCoord
public WorldCoord(IslandInfo island,
IslandCoord coord)
WorldCoord
public WorldCoord(int x,
int y)
- Parameters:
x
- y
-
asIslandCoord
public IslandCoord asIslandCoord(IslandInfo island)
translated
public WorldCoord translated(IslandCoord coord)
translated
public WorldCoord translated(WorldCoord coord)
translated
public WorldCoord translated(int x,
int y)
wrap
public WorldCoord wrap()
wrapped
public WorldCoord wrapped()
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareTo
in interface java.lang.Comparable
toString
public java.lang.String toString()
- Overrides:
toString
in class java.awt.Point