示例#1
0
文件: Game.cs 项目: devillh/Coinche
 public Game()
 {
     Deck      = new List <Card>();
     Players   = new List <Player>();
     Bidding   = new Bidding();
     Carpet    = new Carpet();
     CurPlayer = 0;
     CurStep   = Message.Steps.GAME;
     Round     = 0;
     MaxPlayer = 4;
     MaxRound  = 8;
     CountPlay = 0;
     for (Card.Color j = Card.Color.SPADE; j <= Card.Color.DIAMOND; j++)
     {
         for (Card.Number i = Card.Number.SEVEN; i <= Card.Number.ACE; i++)
         {
             Card card = new Card(i, j, 0);
             Deck.Add(card);
         }
     }
     Shuffle();
     Bidding.Reset();
     Carpet.Clear();
 }
示例#2
0
文件: Carpet.cs 项目: devillh/Coinche
 public void SetBidding(Bidding bid)
 {
     bidding = bid;
 }