Package net.royalur.rules.simple.fast
Class FastSimpleMoveList
java.lang.Object
net.royalur.rules.simple.fast.FastSimpleMoveList
A list of moves that may be reused without allocating memory.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
moves
public int[] movesPath indices of tiles to move. -1 represents introducing a piece. OnlymoveCount
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)
-