dd.util
Class HexCoordinate

java.lang.Object
  extended bydd.sim.SimObject
      extended bydd.util.HexCoordinate
All Implemented Interfaces:
java.io.Serializable

public class HexCoordinate
extends SimObject

Author:
Seth McGinnis
See Also:
Serialized Form

Field Summary
 int f
           
 int g
           
 int h
           
 
Fields inherited from class dd.sim.SimObject
attributes
 
Constructor Summary
HexCoordinate()
           
HexCoordinate(MapCell cell)
           
 
Method Summary
 void canonicalize()
           
static int distance(HexCoordinate here, HexCoordinate there)
           
 int magnitude()
           
static void main(java.lang.String[] args)
           
 void test()
           
 java.lang.String toString()
           
 
Methods inherited from class dd.sim.SimObject
addPropertyChangeListener, addPropertyChangeListener, debug, duplicate, error, fatal, filter, filter, firePropertyChange, getAttribute, getAttribute, getAttributes, getGlobalAttribute, getObjectAttribute, getObjectAttribute, incrementAttribute, incrementAttribute, isSet, log, out, readFromXML, readFromXML, removeAttribute, removePropertyChangeListener, setAttribute, setAttribute, setAttribute, setAttributes, setGlobalAttribute, warning, writeText, writeXML, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

f

public int f

g

public int g

h

public int h
Constructor Detail

HexCoordinate

public HexCoordinate()

HexCoordinate

public HexCoordinate(MapCell cell)
Method Detail

toString

public java.lang.String toString()

canonicalize

public void canonicalize()

magnitude

public int magnitude()

distance

public static int distance(HexCoordinate here,
                           HexCoordinate there)

test

public void test()

main

public static void main(java.lang.String[] args)