Class FastSimpleMoveList

java.lang.Object
net.royalur.rules.simple.fast.FastSimpleMoveList

public class FastSimpleMoveList extends Object
A list of moves that may be reused without allocating memory.
  • Field Details

    • moves

      public int[] moves
      Path indices of tiles to move. -1 represents introducing a piece. Only moveCount moves are populated in this array.
    • moveCount

      public int moveCount
  • Constructor Details

    • FastSimpleMoveList

      public FastSimpleMoveList(int initialCapacity)
    • FastSimpleMoveList

      public FastSimpleMoveList()
  • Method Details

    • clear

      public void clear()
    • add

      public void add(int pathIndex)