public interface Game<StateType extends State,BoardType extends Board>
Modifier and Type | Method and Description |
---|---|
BoardType |
getBoard()
Returns the board configuration of the current game.
|
StateType |
getState()
Returns the state of the current game.
|
java.io.InputStream |
getViewXml()
Returns the view as an FXML inputstream.
|
void |
loadBoard(java.io.InputStream board)
This is called at the beginning loading the board.
|
int |
nextPlayer()
Finishes the current players turn and starting the turn of the next player.
|
java.io.InputStream getViewXml()
void loadBoard(java.io.InputStream board)
board
- InputStream of the board XMLStateType getState()
BoardType getBoard()
int nextPlayer()