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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(int pathIndex) void
clear()
static String
moveToString
(FastSimpleGame game, int pathIndex) toString
(FastSimpleGame game)
-
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) -
moveToString
-
toString
-