Property | Type | Description | |
---|---|---|---|
client | |||
window |
Method | Description | |
---|---|---|
BGGameWindow ( |
||
Capture ( ) : |
||
Chat ( string text ) : void |
Writes a chat message to the game window chat.
|
|
Done ( ) : bool |
Finish the current move turn.
|
|
Double ( ) : bool |
Offer a double.
|
|
GetGameState ( ) : GameState | ||
GetGameState ( |
||
GetHashCode ( ) : int | ||
Leave ( ) : bool |
Close and leave the table.
|
|
MakeMove ( Move move, GameState gamestate ) : void | ||
Rake ( int player, int points ) : int | ||
Resign ( GameState gamestate, ResignValue resign_value ) : bool |
Offer a resign for a given value.
|
|
RespondToDouble ( DoubleResponse double_response ) : bool |
Respond back to a double offer.
|
|
RespondToRematch ( bool accept ) : bool |
Respond back to a rematch offer.
|
|
RespondToResign ( ResignResponse resign_response ) : bool |
Respond back to a resign offer.
|
|
Roll ( ) : bool |
Roll the dice.
|
|
ToString ( ) : string | ||
Undo ( ) : void |
This will undo last or undo all depending on which one is supported by the venue.
|
|
Update ( ) : void |
Checks the window and game status and raises the according events. Notice, the events are designed to support scenarios where one of the players is the observer.
|
Method | Description | |
---|---|---|
OnChatMessage ( string message ) : void | ||
OnDiceRolled ( GameState gamestate ) : void | ||
OnDiceRolled ( GameState gamestate, System.DateTime stamp ) : void | ||
OnDoubleOffered ( GameState gamestate ) : void | ||
OnDoubleOffered ( GameState gamestate, System.DateTime stamp ) : void | ||
OnNewGameStarted ( GameState gamestate ) : void | ||
OnNewGameStarted ( GameState gamestate, System.DateTime stamp ) : void | ||
OnOppDiceRolled ( int dice, bool opening_roll ) : void | ||
OnRematchOffered ( ) : void | ||
OnResignOfferDeclined ( ) : void | ||
OnResignOffered ( ResignValue resign_value ) : void | ||
OnResignOffered ( ResignValue resign_value, System.DateTime stamp ) : void | ||
OnSessionEnded ( ) : void | ||
OnTimeout ( ) : void | ||
OnTurnChanged ( GameState gamestate ) : void | ||
OnTurnChanged ( GameState gamestate, System.DateTime stamp ) : void |
public BGGameWindow ( |
||
window | ||
client | ||
return | System |
public abstract Chat ( string text ) : void | ||
text | string | Text to write. |
return | void |
public abstract GetGameState ( |
||
bitmap | ||
return | GameState |
public abstract MakeMove ( Move move, GameState gamestate ) : void | ||
move | Move | |
gamestate | GameState | |
return | void |
protected OnChatMessage ( string message ) : void | ||
message | string | |
return | void |
protected OnDiceRolled ( GameState gamestate ) : void | ||
gamestate | GameState | |
return | void |
protected OnDiceRolled ( GameState gamestate, System.DateTime stamp ) : void | ||
gamestate | GameState | |
stamp | System.DateTime | |
return | void |
protected OnDoubleOffered ( GameState gamestate ) : void | ||
gamestate | GameState | |
return | void |
protected OnDoubleOffered ( GameState gamestate, System.DateTime stamp ) : void | ||
gamestate | GameState | |
stamp | System.DateTime | |
return | void |
protected OnNewGameStarted ( GameState gamestate ) : void | ||
gamestate | GameState | |
return | void |
protected OnNewGameStarted ( GameState gamestate, System.DateTime stamp ) : void | ||
gamestate | GameState | |
stamp | System.DateTime | |
return | void |
protected OnOppDiceRolled ( int dice, bool opening_roll ) : void | ||
dice | int | |
opening_roll | bool | |
return | void |
protected OnResignOffered ( ResignValue resign_value ) : void | ||
resign_value | ResignValue | |
return | void |
protected OnResignOffered ( ResignValue resign_value, System.DateTime stamp ) : void | ||
resign_value | ResignValue | |
stamp | System.DateTime | |
return | void |
protected OnTurnChanged ( GameState gamestate ) : void | ||
gamestate | GameState | |
return | void |
protected OnTurnChanged ( GameState gamestate, System.DateTime stamp ) : void | ||
gamestate | GameState | |
stamp | System.DateTime | |
return | void |
public abstract Resign ( GameState gamestate, ResignValue resign_value ) : bool | ||
gamestate | GameState | |
resign_value | ResignValue | |
return | bool |
public abstract RespondToDouble ( DoubleResponse double_response ) : bool | ||
double_response | DoubleResponse | |
return | bool |
public abstract RespondToRematch ( bool accept ) : bool | ||
accept | bool | |
return | bool |
public abstract RespondToResign ( ResignResponse resign_response ) : bool | ||
resign_response | ResignResponse | |
return | bool |