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

Inheritance: GR.Gambling.VenueClient
Show file Open project: alexhanh/Botting-Library Class Usage Examples

Protected Properties

Property Type Description
lobby BGLobby

Public Methods

Method Description
BGClient ( ) : System
BeginScanning ( int update_interval ) : void
CreateGameWindow ( Window window ) : BGGameWindow
EndScanning ( ) : void
InitializeForPlay ( ) : bool

This function should start the client, wait for the lobby to load, login and clear all the popups and make preparations for game play. Should call OnUpdateDetected() if the client is updated while starting. Should return true on succesful operation, false otherwise.

IsGameWindow ( Window window ) : bool
Rake ( OnlineMatchInfo match_info, int winner, int cube_value, int points ) : decimal

Scan ( ) : void

Protected Methods

Method Description
OnUpdateDetected ( ) : void

Private Methods

Method Description
ContinuousScan ( ) : void
WindowEnumCallback ( IntPtr hwnd, int lParam ) : bool

Method Details

BGClient() public method

public BGClient ( ) : System
return System

BeginScanning() public method

public BeginScanning ( int update_interval ) : void
update_interval int
return void

CreateGameWindow() public abstract method

public abstract CreateGameWindow ( Window window ) : BGGameWindow
window GR.Win32.Window
return BGGameWindow

EndScanning() public method

public EndScanning ( ) : void
return void

InitializeForPlay() public abstract method

This function should start the client, wait for the lobby to load, login and clear all the popups and make preparations for game play. Should call OnUpdateDetected() if the client is updated while starting. Should return true on succesful operation, false otherwise.
public abstract InitializeForPlay ( ) : bool
return bool

IsGameWindow() public abstract method

public abstract IsGameWindow ( Window window ) : bool
window GR.Win32.Window
return bool

OnUpdateDetected() protected method

protected OnUpdateDetected ( ) : void
return void

Rake() public abstract method

public abstract Rake ( OnlineMatchInfo match_info, int winner, int cube_value, int points ) : decimal
match_info OnlineMatchInfo
winner int
cube_value int
points int
return decimal

Scan() public method

public Scan ( ) : void
return void

Property Details

lobby protected property

protected BGLobby,GR.Gambling.Backgammon.Venue lobby
return BGLobby