Class Hex

java.lang.Object
VASSAL.tools.hex.Hex

public class Hex extends Object
  • Field Details

    • q

      public final int q
    • r

      public final int r
    • s

      public final int s
    • directions

      public static final List<Hex> directions
    • diagonals

      public static final List<Hex> diagonals
  • Constructor Details

    • Hex

      public Hex(int q, int r, int s)
  • Method Details

    • add

      public Hex add(Hex b)
    • subtract

      public Hex subtract(Hex b)
    • scale

      public Hex scale(int k)
    • rotateLeft

      public Hex rotateLeft()
    • rotateRight

      public Hex rotateRight()
    • direction

      public static Hex direction(int direction)
    • neighbor

      public Hex neighbor(int direction)
    • diagonalNeighbor

      public Hex diagonalNeighbor(int direction)
    • length

      public int length()
    • distance

      public int distance(Hex b)