示例#1
0
文件: Game.cs 项目: unidayo/Merchants
 public void Setup()
 {
     this._deck = new Deck();
     this._tokenPool = new TokenPool();
     this._specialCardPool = new SpecialCardPool();
     this._specialCardPool.Setup(_tokenPool);
     this._communityCards = new CommunityCard();
     _communityCards.AddFirst(_deck.Draw());
     _communityCards.AddSecond(_deck.Draw());
     _communityCards.AddThird(_deck.Draw());
     _communityCards.AddFourth(_deck.Draw());
     _communityCards.AddFifth(_deck.Draw());
     _communityCards.AddSixth(_deck.Draw());
 }
示例#2
0
        public void Setup(TokenPool tokenPool)
        {
            const int SHIP_COUNT = 14;
            for (int i = 0; i < SHIP_COUNT; i++)
            {
                _shipPool.Add(new Ship(tokenPool));
            }

            const int SPECIAL_CARD_COUNT = 2;
            for (int i = 0; i < SPECIAL_CARD_COUNT; i++)
            {
                _dockerPool.Add(new Docker());
                _officePool.Add(new Office());
                _tradeAgreementPool.Add(new TradeAgreement());
            }
        }
示例#3
0
 public void TestInitialize()
 {
     _pool = new TokenPool();
 }
示例#4
0
文件: Ship.cs 项目: unidayo/Merchants
 public Ship(TokenPool tokenPool)
 {
     this._tokenPool = tokenPool;
 }