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; }
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; }
/// <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); }