public class WinState
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
WinState.States
Enum describing the different states of winning
|
Constructor and Description |
---|
WinState(WinState.States state,
int playerId)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getPlayerId()
getter for the player ID
|
WinState.States |
getState()
getter for the state of winning
|
public WinState(WinState.States state, int playerId)
state
- What win state is the game currently in?playerId
- Who wins? If nobody is currently winning (or if there are multiple winning then it is a draw) playerId=-1public int getPlayerId()
public WinState.States getState()