예제 #1
0
 public void add(Domino d)
 {
     dominos.Add(d);
 }
예제 #2
0
 internal void Play(Domino d)
 {
     throw new NotImplementedException();
 }
예제 #3
0
파일: Hand.cs 프로젝트: catfood781/Lab01
 public void Add(Domino d)
 {
     handOfDominos.Add(d);
 }
예제 #4
0
 /// <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);
예제 #5
0
 /// <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));
 }
예제 #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="d"></param>
 public void Add(Domino d)
 {
     listofDominos.Add(d);
 }
예제 #7
0
파일: Hand.cs 프로젝트: bobby5892/CS234
 /// <summary>
 /// Add (Domino) -- This Adds a Domino to hand
 /// </summary>
 public void Add(Domino d)
 {
     this.handOfDominos.Add(d);
 }
예제 #8
0
파일: Hand.cs 프로젝트: bobby5892/CS234
 /// <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);
 }
예제 #9
0
 public void Play(Domino d) => this.dominos.Remove(d);
예제 #10
0
 public void Add(Domino d) => this.dominos.Add(d);
예제 #11
0
 public void Add(Domino d) => hand.Add(d);