Méthode | 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 | |
Résultat |
public GameState ( GameType game_type ) : System | ||
game_type | GameType | |
Résultat | System |
public Resign ( ResignValue resign_value ) : void | ||
resign_value | ResignValue | |
Résultat | void |
public Score ( int player ) : int | ||
player | int | The player who's current match score is returned. |
Résultat | int |
public static Serialize ( |
||
gs | ||
Résultat | string |
public SetCube ( int value, int owner ) : void | ||
value | int | |
owner | int | |
Résultat | void |
public SetDice ( int first_die, int second_die ) : void | ||
first_die | int | |
second_die | int | |
Résultat | void |
public SetName ( int player, string name ) : void | ||
player | int | |
name | string | |
Résultat | void |
public SetResignOffer ( ResignValue value ) : void | ||
value | ResignValue | |
Résultat | void |
public SetScore ( int player0, int player1 ) : void | ||
player0 | int | |
player1 | int | |
Résultat | void |