示例#1
0
文件: SlotResult.cs 项目: ajon542/GDK
        public SlotResult(PayCombo payCombo, Payline payline)
        {
            // TODO: Probably should make a GDKException class.
            if (payCombo == null)
            {
                throw new ArgumentNullException("payCombo");
            }

            if (payline == null)
            {
                throw new ArgumentNullException("payline");
            }

            PayCombo = payCombo;
            Payline = payline;
        }
示例#2
0
文件: Evaluator.cs 项目: ajon542/GDK
        private bool CheckMatch(PayCombo payCombo, List<Symbol> symbolsInPayline)
        {
            if (payCombo.Symbols.Count > symbolsInPayline.Count)
            {
                return false;
            }

            bool match = true;
            for (int i = 0; i < payCombo.Symbols.Count; ++i)
            {
                if (!payCombo.Symbols[i].Equals(symbolsInPayline[i]))
                {
                    match = false;
                    break;
                }
            }

            return match;
        }
示例#3
0
文件: PayCombo.cs 项目: ajon542/GDK
 /// <summary>
 /// Adds a pay combo to the pay combo group.
 /// </summary>
 /// <param name="payCombo">The payline to add.</param>
 public void AddPayCombo(PayCombo payCombo)
 {
     Combos.Add(payCombo);
 }