@FunctionalInterface public interface Rule
Modifier and Type | Method and Description |
---|---|
default boolean |
canFire(int playerID,
GameState state) |
default boolean |
couldFire(int playerID,
GameState state)
Return true if it is possible this rule could fire, and return false if you can guarantee that it cannot fire.
|
Action |
execute(int playerID,
GameState state) |
default boolean canFire(int playerID, GameState state)
default boolean couldFire(int playerID, GameState state)
playerID
- The player id that is this turnstate
- The state of the boardCopyright © 2017 FOSS Galaxy. All rights reserved.