Beispiel #1
0
 private string getItemName(ItemCard card)
 {
     if (card == ItemCard.newCopper())
         return "銅";
     if (card == ItemCard.newCotton())
         return "綿";
     if (card == ItemCard.newHemp())
         return "麻";
     if (card == ItemCard.newIndigo())
         return "藍";
     if (card == ItemCard.newPepper())
         return "胡椒";
     if (card == ItemCard.newSalt())
         return "塩";
     return string.Empty;
 }
Beispiel #2
0
 public void AddSixth(ItemCard card)
 {
     _sixth = card;
 }
Beispiel #3
0
 public void AddFifth(ItemCard card)
 {
     _fifth = card;
 }
Beispiel #4
0
 public void AddFourth(ItemCard card)
 {
     _fourth = card;
 }
Beispiel #5
0
 public void AddThird(ItemCard card)
 {
     _third = card;
 }
Beispiel #6
0
 public void AddSecond(ItemCard card)
 {
     _second = card;
 }
Beispiel #7
0
 public void AddFirst(ItemCard card)
 {
     _first = card;
 }
Beispiel #8
0
 public void Add(ItemCard card)
 {
     Debug.Assert(card != null, "空のカードは受付けません");
     _cards.Add(card);
 }