C# Class GR.Gambling.Backgammon.GameOffer

Represents creatable and joinable game offers.
ファイルを表示 Open project: alexhanh/Botting-Library Class Usage Examples

Protected Properties

Property Type Description
creator string
game_type GameType
limit int
match_to int
stake int
time_created System.DateTime

Public Methods

Method Description
CreateMatchOffer ( string creator, int match_to, int stake ) : GameOffer
CreateMoneyOffer ( string creator, int stake, int limit ) : GameOffer
FromOffer ( GameOffer offer ) : GameOffer

Creates a deep-copy from existing offer and updates it's time stamp.

GameOffer ( string creator, GameType game_type, int match_to, int stake, int limit ) : System
GameOffer ( string creator, GameType game_type, int match_to, int stake, int limit, System.DateTime time_created ) : System
GetHashCode ( ) : int

Method Details

CreateMatchOffer() public static method

public static CreateMatchOffer ( string creator, int match_to, int stake ) : GameOffer
creator string
match_to int
stake int
return GameOffer

CreateMoneyOffer() public static method

public static CreateMoneyOffer ( string creator, int stake, int limit ) : GameOffer
creator string
stake int
limit int
return GameOffer

FromOffer() public static method

Creates a deep-copy from existing offer and updates it's time stamp.
public static FromOffer ( GameOffer offer ) : GameOffer
offer GameOffer
return GameOffer

GameOffer() public method

public GameOffer ( string creator, GameType game_type, int match_to, int stake, int limit ) : System
creator string
game_type GameType
match_to int
stake int
limit int
return System

GameOffer() public method

public GameOffer ( string creator, GameType game_type, int match_to, int stake, int limit, System.DateTime time_created ) : System
creator string
game_type GameType
match_to int
stake int
limit int
time_created System.DateTime
return System

GetHashCode() public method

public GetHashCode ( ) : int
return int

Property Details

creator protected_oe property

protected string creator
return string

game_type protected_oe property

protected GameType game_type
return GameType

limit protected_oe property

protected int limit
return int

match_to protected_oe property

protected int match_to
return int

stake protected_oe property

protected int stake
return int

time_created protected_oe property

protected DateTime,System time_created
return System.DateTime