C# Class GR.Gambling.Backgammon.Venue.BGGameWindow

Afficher le fichier Open project: alexhanh/Botting-Library Class Usage Examples

Protected Properties

Свойство Type Description
client BGClient
window GR.Win32.Window

Méthodes publiques

Méthode Description
BGGameWindow ( Window window, BGClient client ) : System
Capture ( ) : Bitmap
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 ( Bitmap bitmap ) : GameState
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.

Méthodes protégées

Méthode 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

Method Details

BGGameWindow() public méthode

public BGGameWindow ( Window window, BGClient client ) : System
window GR.Win32.Window
client BGClient
Résultat System

Capture() public méthode

public Capture ( ) : Bitmap
Résultat System.Drawing.Bitmap

Chat() public abstract méthode

Writes a chat message to the game window chat.
public abstract Chat ( string text ) : void
text string Text to write.
Résultat void

Done() public abstract méthode

Finish the current move turn.
public abstract Done ( ) : bool
Résultat bool

Double() public abstract méthode

Offer a double.
public abstract Double ( ) : bool
Résultat bool

GetGameState() public méthode

public GetGameState ( ) : GameState
Résultat GameState

GetGameState() public abstract méthode

public abstract GetGameState ( Bitmap bitmap ) : GameState
bitmap System.Drawing.Bitmap
Résultat GameState

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Leave() public abstract méthode

Close and leave the table.
public abstract Leave ( ) : bool
Résultat bool

MakeMove() public abstract méthode

public abstract MakeMove ( Move move, GameState gamestate ) : void
move Move
gamestate GameState
Résultat void

OnChatMessage() protected méthode

protected OnChatMessage ( string message ) : void
message string
Résultat void

OnDiceRolled() protected méthode

protected OnDiceRolled ( GameState gamestate ) : void
gamestate GameState
Résultat void

OnDiceRolled() protected méthode

protected OnDiceRolled ( GameState gamestate, System.DateTime stamp ) : void
gamestate GameState
stamp System.DateTime
Résultat void

OnDoubleOffered() protected méthode

protected OnDoubleOffered ( GameState gamestate ) : void
gamestate GameState
Résultat void

OnDoubleOffered() protected méthode

protected OnDoubleOffered ( GameState gamestate, System.DateTime stamp ) : void
gamestate GameState
stamp System.DateTime
Résultat void

OnNewGameStarted() protected méthode

protected OnNewGameStarted ( GameState gamestate ) : void
gamestate GameState
Résultat void

OnNewGameStarted() protected méthode

protected OnNewGameStarted ( GameState gamestate, System.DateTime stamp ) : void
gamestate GameState
stamp System.DateTime
Résultat void

OnOppDiceRolled() protected méthode

protected OnOppDiceRolled ( int dice, bool opening_roll ) : void
dice int
opening_roll bool
Résultat void

OnRematchOffered() protected méthode

protected OnRematchOffered ( ) : void
Résultat void

OnResignOfferDeclined() protected méthode

protected OnResignOfferDeclined ( ) : void
Résultat void

OnResignOffered() protected méthode

protected OnResignOffered ( ResignValue resign_value ) : void
resign_value ResignValue
Résultat void

OnResignOffered() protected méthode

protected OnResignOffered ( ResignValue resign_value, System.DateTime stamp ) : void
resign_value ResignValue
stamp System.DateTime
Résultat void

OnSessionEnded() protected méthode

protected OnSessionEnded ( ) : void
Résultat void

OnTimeout() protected méthode

protected OnTimeout ( ) : void
Résultat void

OnTurnChanged() protected méthode

protected OnTurnChanged ( GameState gamestate ) : void
gamestate GameState
Résultat void

OnTurnChanged() protected méthode

protected OnTurnChanged ( GameState gamestate, System.DateTime stamp ) : void
gamestate GameState
stamp System.DateTime
Résultat void

Rake() public méthode

public Rake ( int player, int points ) : int
player int
points int
Résultat int

Resign() public abstract méthode

Offer a resign for a given value.
public abstract Resign ( GameState gamestate, ResignValue resign_value ) : bool
gamestate GameState
resign_value ResignValue
Résultat bool

RespondToDouble() public abstract méthode

Respond back to a double offer.
public abstract RespondToDouble ( DoubleResponse double_response ) : bool
double_response DoubleResponse
Résultat bool

RespondToRematch() public abstract méthode

Respond back to a rematch offer.
public abstract RespondToRematch ( bool accept ) : bool
accept bool
Résultat bool

RespondToResign() public abstract méthode

Respond back to a resign offer.
public abstract RespondToResign ( ResignResponse resign_response ) : bool
resign_response ResignResponse
Résultat bool

Roll() public abstract méthode

Roll the dice.
public abstract Roll ( ) : bool
Résultat bool

ToString() public méthode

public ToString ( ) : string
Résultat string

Undo() public abstract méthode

This will undo last or undo all depending on which one is supported by the venue.
public abstract Undo ( ) : void
Résultat void

Update() public abstract méthode

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.
public abstract Update ( ) : void
Résultat void

Property Details

client protected_oe property

protected BGClient,GR.Gambling.Backgammon.Venue client
Résultat BGClient

window protected_oe property

protected Window,GR.Win32 window
Résultat GR.Win32.Window