C# 클래스 GR.Gambling.Backgammon.Venue.BGGameWindow

파일 보기 프로젝트 열기: alexhanh/Botting-Library 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
client BGClient
window GR.Win32.Window

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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

메소드 상세

BGGameWindow() 공개 메소드

public BGGameWindow ( Window window, BGClient client ) : System
window GR.Win32.Window
client BGClient
리턴 System

Capture() 공개 메소드

public Capture ( ) : Bitmap
리턴 System.Drawing.Bitmap

Chat() 공개 추상적인 메소드

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

Done() 공개 추상적인 메소드

Finish the current move turn.
public abstract Done ( ) : bool
리턴 bool

Double() 공개 추상적인 메소드

Offer a double.
public abstract Double ( ) : bool
리턴 bool

GetGameState() 공개 메소드

public GetGameState ( ) : GameState
리턴 GameState

GetGameState() 공개 추상적인 메소드

public abstract GetGameState ( Bitmap bitmap ) : GameState
bitmap System.Drawing.Bitmap
리턴 GameState

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

Leave() 공개 추상적인 메소드

Close and leave the table.
public abstract Leave ( ) : bool
리턴 bool

MakeMove() 공개 추상적인 메소드

public abstract MakeMove ( Move move, GameState gamestate ) : void
move Move
gamestate GameState
리턴 void

OnChatMessage() 보호된 메소드

protected OnChatMessage ( string message ) : void
message string
리턴 void

OnDiceRolled() 보호된 메소드

protected OnDiceRolled ( GameState gamestate ) : void
gamestate GameState
리턴 void

OnDiceRolled() 보호된 메소드

protected OnDiceRolled ( GameState gamestate, System.DateTime stamp ) : void
gamestate GameState
stamp System.DateTime
리턴 void

OnDoubleOffered() 보호된 메소드

protected OnDoubleOffered ( GameState gamestate ) : void
gamestate GameState
리턴 void

OnDoubleOffered() 보호된 메소드

protected OnDoubleOffered ( GameState gamestate, System.DateTime stamp ) : void
gamestate GameState
stamp System.DateTime
리턴 void

OnNewGameStarted() 보호된 메소드

protected OnNewGameStarted ( GameState gamestate ) : void
gamestate GameState
리턴 void

OnNewGameStarted() 보호된 메소드

protected OnNewGameStarted ( GameState gamestate, System.DateTime stamp ) : void
gamestate GameState
stamp System.DateTime
리턴 void

OnOppDiceRolled() 보호된 메소드

protected OnOppDiceRolled ( int dice, bool opening_roll ) : void
dice int
opening_roll bool
리턴 void

OnRematchOffered() 보호된 메소드

protected OnRematchOffered ( ) : void
리턴 void

OnResignOfferDeclined() 보호된 메소드

protected OnResignOfferDeclined ( ) : void
리턴 void

OnResignOffered() 보호된 메소드

protected OnResignOffered ( ResignValue resign_value ) : void
resign_value ResignValue
리턴 void

OnResignOffered() 보호된 메소드

protected OnResignOffered ( ResignValue resign_value, System.DateTime stamp ) : void
resign_value ResignValue
stamp System.DateTime
리턴 void

OnSessionEnded() 보호된 메소드

protected OnSessionEnded ( ) : void
리턴 void

OnTimeout() 보호된 메소드

protected OnTimeout ( ) : void
리턴 void

OnTurnChanged() 보호된 메소드

protected OnTurnChanged ( GameState gamestate ) : void
gamestate GameState
리턴 void

OnTurnChanged() 보호된 메소드

protected OnTurnChanged ( GameState gamestate, System.DateTime stamp ) : void
gamestate GameState
stamp System.DateTime
리턴 void

Rake() 공개 메소드

public Rake ( int player, int points ) : int
player int
points int
리턴 int

Resign() 공개 추상적인 메소드

Offer a resign for a given value.
public abstract Resign ( GameState gamestate, ResignValue resign_value ) : bool
gamestate GameState
resign_value ResignValue
리턴 bool

RespondToDouble() 공개 추상적인 메소드

Respond back to a double offer.
public abstract RespondToDouble ( DoubleResponse double_response ) : bool
double_response DoubleResponse
리턴 bool

RespondToRematch() 공개 추상적인 메소드

Respond back to a rematch offer.
public abstract RespondToRematch ( bool accept ) : bool
accept bool
리턴 bool

RespondToResign() 공개 추상적인 메소드

Respond back to a resign offer.
public abstract RespondToResign ( ResignResponse resign_response ) : bool
resign_response ResignResponse
리턴 bool

Roll() 공개 추상적인 메소드

Roll the dice.
public abstract Roll ( ) : bool
리턴 bool

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

Undo() 공개 추상적인 메소드

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

Update() 공개 추상적인 메소드

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
리턴 void

프로퍼티 상세

client 보호되어 있는 프로퍼티

protected BGClient,GR.Gambling.Backgammon.Venue client
리턴 BGClient

window 보호되어 있는 프로퍼티

protected Window,GR.Win32 window
리턴 GR.Win32.Window