public void add(Domino d) { dominos.Add(d); }
internal void Play(Domino d) { throw new NotImplementedException(); }
public void Add(Domino d) { handOfDominos.Add(d); }
/// <summary> /// Determines whether a hand can play a specific domino on this train and if the domino must be flipped. /// Because the rules for playing are different for Mexican and Player trains, this method is abstract. /// </summary> public abstract bool IsPlayable(Hand h, Domino d, out bool mustFlip);
/// <summary> ///****overrides abstract IsPlayable*** /// </summary> /// <param name="h"></param> /// <param name="d"></param> /// <param name="mustFlip"></param> /// <returns></returns> public override bool IsPlayable(Hand h, Domino d, out bool mustFlip) { return(IsPlayable(d, out mustFlip)); }
/// <summary> /// /// </summary> /// <param name="d"></param> public void Add(Domino d) { listofDominos.Add(d); }
/// <summary> /// Add (Domino) -- This Adds a Domino to hand /// </summary> public void Add(Domino d) { this.handOfDominos.Add(d); }
/// <summary> /// Play - Plays a domino on a train /// </summary> /// <param name="d">Domino </param> /// <param name="t">Train</param> public void Play(Domino d, Train t) { t.Play(d); }
public void Play(Domino d) => this.dominos.Remove(d);
public void Add(Domino d) => this.dominos.Add(d);
public void Add(Domino d) => hand.Add(d);