public override bool Equals(object obj) { if (!obj.GetType().IsSubclassOf(typeof(CGuitarFinger))) { return(false); } CGuitarFinger cFinger = (CGuitarFinger)obj; if (Fret != cFinger.Fret) { return(false); } if (Strings.Count != cFinger.Strings.Count) { return(false); } foreach (EString eCurrString in cFinger.Strings) { if (!Strings.Contains(eCurrString)) { return(false); } } return(true); }
public override bool CanPlay(CGuitarFinger cFngr) { if (cFngr == null) { return(false); } return(base.CanPlay(cFngr)); }
public override bool CanPlay(CGuitarFinger cFngr) { if (cFngr.Strings.Count > 1) { if (!(cFngr.Strings.Contains(EString.Second) || cFngr.Strings.Contains(EString.First))) { return(false); } } return(base.CanPlay(cFngr)); }
public CBasicGuitarFinger(CGuitarFinger other) { Fret = other.Fret; Strings = new List <EString>(); m_nPriority = int.MinValue; foreach (EString currString in other.Strings) { if (!Add(new CFingerPosition(currString, Fret))) { throw new Exception("What the hell is going on?"); } } }
public override bool CanPlay(CGuitarFinger cPos) { return(cPos.IsValid()); }
public CThrdFinger(CGuitarFinger ThrdFinger) : base(ThrdFinger) { }
public CSecFinger(CGuitarFinger SecondFinger) : base(SecondFinger) { }
abstract public bool CanPlay(CGuitarFinger cFngr);
public CFourthFinger(CGuitarFinger FourthFinger) : base(FourthFinger) { }
public CFstFinger(CGuitarFinger FirstFinger) : base(FirstFinger) { }