Пример #1
0
 // Uses the indexof method in this class.
 public bool HasDomino(Domino c)
 {
     return(dominos.IndexOf(c) != -1);
 }
Пример #2
0
 // Just a puppet for the List.IndexOf() method.
 public int IndexOf(Domino c)
 {
     return(dominos.IndexOf(c));
 }
Пример #3
0
 // Add a card to the cards.
 public void AddDomino(Domino c)
 {
     dominos.Add(c);
 }