Method | Description | |
---|---|---|
CanDouble ( ) : bool |
Tries to deduce if the player on turn can double.
|
|
CenterCube ( ) : void | ||
ChangeTurn ( ) : void |
Flips the current player on roll and sets the roller also as the player on turn, resets the dice.
|
|
Clone ( ) : |
||
Deserialize ( string s ) : |
||
Double ( ) : void | ||
Equals ( |
Compares this to another game state and determines if they are the same.
|
|
GameState ( GameType game_type ) : System | ||
GetName ( int player ) : string | ||
Reject ( ) : void | ||
Resign ( ResignValue resign_value ) : void | ||
Score ( int player ) : int |
|
|
Serialize ( |
||
SetCube ( int value, int owner ) : void | ||
SetDice ( int first_die, int second_die ) : void | ||
SetDoubleOffer ( ) : void | ||
SetName ( int player, string name ) : void | ||
SetResignOffer ( ResignValue value ) : void | ||
SetScore ( int player0, int player1 ) : void | ||
Take ( ) : void | ||
ToString ( ) : string | ||
Unroll ( ) : void |
Reset the dice to tray.
|
public static Deserialize ( string s ) : |
||
s | string | |
return |
public GameState ( GameType game_type ) : System | ||
game_type | GameType | |
return | System |
public Resign ( ResignValue resign_value ) : void | ||
resign_value | ResignValue | |
return | void |
public Score ( int player ) : int | ||
player | int | The player who's current match score is returned. |
return | int |
public static Serialize ( |
||
gs | ||
return | string |
public SetCube ( int value, int owner ) : void | ||
value | int | |
owner | int | |
return | void |
public SetDice ( int first_die, int second_die ) : void | ||
first_die | int | |
second_die | int | |
return | void |
public SetName ( int player, string name ) : void | ||
player | int | |
name | string | |
return | void |
public SetResignOffer ( ResignValue value ) : void | ||
value | ResignValue | |
return | void |
public SetScore ( int player0, int player1 ) : void | ||
player0 | int | |
player1 | int | |
return | void |