hexIT
Class DiamondBoard

java.lang.Object
  extended byhexIT.Board
      extended byhexIT.DiamondBoard
All Implemented Interfaces:
java.io.Serializable

public class DiamondBoard
extends Board

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- . . . .

 

See Also:
Serialized Form

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

DiamondBoard

public DiamondBoard(int new_size)
Creates a new diamond board of the specified size.

Method Detail

distance

public int distance(Hexagon h1,
                    Hexagon h2)
Calculates the minimum # of hexes need to travel from one to the other.

Specified by:
distance in class Board

tilesIterator

public java.util.Iterator tilesIterator()
Unimplemented. See description in superclass.

Specified by:
tilesIterator in class Board

getSurrounding

public java.util.List getSurrounding(int hexx,
                                     int hexy,
                                     int radius)
Unimplemented. See description in superclass.

Specified by:
getSurrounding in class Board

getLOS

public java.util.List getLOS(int hexx1,
                             int hexy1,
                             int hexx2,
                             int hexy2)
Unimplemented. See description in superclass.

Specified by:
getLOS in class Board

getShortestPath

public java.util.List getShortestPath(int hexx1,
                                      int hexy1,
                                      int hexx2,
                                      int hexy2)
Unimplemented. See description in superclass.

Specified by:
getShortestPath in class Board

getFOV

public java.util.List getFOV(int hexx1,
                             int hexy1,
                             int maxradius)
Unimplemented. See description in superclass.

Specified by:
getFOV in class Board

getExterior

public java.util.List getExterior()
Unimplemented. See description in superclass.

Specified by:
getExterior in class Board