예제 #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;
 }