|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjecthexIT.Board
hexIT.DiamondBoard
A diamond board is a board arranged like a diamond, as seen below. The board depicted below has size 4.
Coord System & Example: (y-coord) 0 1 2 3 / / / / (x-coord) 0- . . . . 1- . . x . <-- that 'x' is at (1,2) 2- . . . . 3- . . . .
Constructor Summary | |
DiamondBoard(int new_size)
Creates a new diamond board of the specified size. |
Method Summary | |
int |
distance(Hexagon h1,
Hexagon h2)
Calculates the minimum # of hexes need to travel from one to the other. |
java.util.List |
getExterior()
Unimplemented. |
java.util.List |
getFOV(int hexx1,
int hexy1,
int maxradius)
Unimplemented. |
java.util.List |
getLOS(int hexx1,
int hexy1,
int hexx2,
int hexy2)
Unimplemented. |
java.util.List |
getShortestPath(int hexx1,
int hexy1,
int hexx2,
int hexy2)
Unimplemented. |
java.util.List |
getSurrounding(int hexx,
int hexy,
int radius)
Unimplemented. |
java.util.Iterator |
tilesIterator()
Unimplemented. |
Methods inherited from class hexIT.Board |
createFrame, findObject, setFrameSize, show |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DiamondBoard(int new_size)
Method Detail |
public int distance(Hexagon h1, Hexagon h2)
distance
in class Board
public java.util.Iterator tilesIterator()
tilesIterator
in class Board
public java.util.List getSurrounding(int hexx, int hexy, int radius)
getSurrounding
in class Board
public java.util.List getLOS(int hexx1, int hexy1, int hexx2, int hexy2)
getLOS
in class Board
public java.util.List getShortestPath(int hexx1, int hexy1, int hexx2, int hexy2)
getShortestPath
in class Board
public java.util.List getFOV(int hexx1, int hexy1, int maxradius)
getFOV
in class Board
public java.util.List getExterior()
getExterior
in class Board
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |