C# Class GR.Gambling.Backgammon.GameOffer

Represents creatable and joinable game offers.
Afficher le fichier Open project: alexhanh/Botting-Library Class Usage Examples

Protected Properties

Свойство Type Description
creator string
game_type GameType
limit int
match_to int
stake int
time_created System.DateTime

Méthodes publiques

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

public static CreateMatchOffer ( string creator, int match_to, int stake ) : GameOffer
creator string
match_to int
stake int
Résultat GameOffer

CreateMoneyOffer() public static méthode

public static CreateMoneyOffer ( string creator, int stake, int limit ) : GameOffer
creator string
stake int
limit int
Résultat GameOffer

FromOffer() public static méthode

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

GameOffer() public méthode

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
Résultat System

GameOffer() public méthode

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
Résultat System

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Property Details

creator protected_oe property

protected string creator
Résultat string

game_type protected_oe property

protected GameType game_type
Résultat GameType

limit protected_oe property

protected int limit
Résultat int

match_to protected_oe property

protected int match_to
Résultat int

stake protected_oe property

protected int stake
Résultat int

time_created protected_oe property

protected DateTime,System time_created
Résultat System.DateTime