Package net.royalur.rules.simple.fast
Class FastSimpleFlags
java.lang.Object
net.royalur.rules.simple.fast.FastSimpleFlags
Flags about the tiles on the board that can be accessed efficiently.
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
static final int
static final int
static final int
static final int
static final int
final int[]
static final int
final int
final GameSettings
final int[]
final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
countStates
(Function<FastSimpleGame, Boolean> gameFilter) void
loopLightGameStates
(Consumer<FastSimpleGame> gameConsumer) Only loops through game states where it is light's turn.void
-
Field Details
-
OCCUPANTS_MASK
public static final int OCCUPANTS_MASK- See Also:
-
LIGHT_ONLY_FLAG
public static final int LIGHT_ONLY_FLAG- See Also:
-
LIGHT_PATH_INDEX_SHIFT
public static final int LIGHT_PATH_INDEX_SHIFT- See Also:
-
LIGHT_PATH_INDEX_MASK
public static final int LIGHT_PATH_INDEX_MASK- See Also:
-
DARK_PATH_INDEX_SHIFT
public static final int DARK_PATH_INDEX_SHIFT- See Also:
-
DARK_PATH_INDEX_MASK
public static final int DARK_PATH_INDEX_MASK- See Also:
-
settings
-
boardIndexCount
public final int boardIndexCount -
tileFlags
public final int[] tileFlags -
nextBoardIndices
public final int[] nextBoardIndices -
warTileCount
public final int warTileCount -
safeTileCountPerPlayer
public final int safeTileCountPerPlayer
-
-
Constructor Details
-
FastSimpleFlags
-
-
Method Details
-
countStates
public int countStates() -
countStates
-
loopLightGameStatesAndNeighbours
public void loopLightGameStatesAndNeighbours(BiConsumer<FastSimpleGame, Collection<FastSimpleGame>> consumer) -
loopLightGameStates
Only loops through game states where it is light's turn.
-