public GameDescriptor(SiteName siteName,
                       GameType gameType,
                       Limit limit,
                       TableType tableType,
                       SeatType seatType)
     : this(PokerFormat.CashGame, siteName, gameType, limit, tableType, seatType)
 {
 }
 public GameDescriptor(PokerFormat pokerFormat,
                       SiteName siteName,
                       GameType gameType,
                       Limit limit,
                       TableType tableType,
                       SeatType seatType)
 {
     PokerFormat = pokerFormat;
     Site = siteName;
     GameType = gameType;
     Limit = limit;
     TableType = tableType;
     SeatType = seatType;
 }
Esempio n. 3
0
        public static Limit ParseDbSafeString(string limitString)
        {
            if (limitString == "Any")
            {
                return(Limit.AllLimit());
            }

            if (limitString[0] == 'L' || limitString[0] == 'l')
            {
                limitString = limitString.Substring(1);
            }
            string[] split = limitString.Replace("Ante", "").Replace("ante", "").Replace("L", "").Replace("c", "").Split('-');

            decimal smallBlind = Int32.Parse(split[0]) / 100.0m;
            decimal bigBlind   = Int32.Parse(split[1]) / 100.0m;

            decimal ante = (split.Length == 4) ? Int32.Parse(split[2]) / 100.0m : 0;

            string   currencyString = (split.Length == 4) ? split[3] : split[2];
            Currency currency       = (Currency)Enum.Parse(typeof(Currency), currencyString, true);

            return(Limit.FromSmallBlindBigBlind(smallBlind, bigBlind, currency, ante != 0, ante));
        }
Esempio n. 4
0
 public LimitGameTypePair(Limit limit, GameType gameType)
 {
     Limit    = limit;
     GameType = gameType;
 }
 public LimitGameTypePair(Limit limit, GameType gameType)
 {
     Limit = limit;
     GameType = gameType;
 }