コード例 #1
0
ファイル: OfficeTest.cs プロジェクト: ArturKorop/PuertoRico
 public void Initialize()
 {
     _market = new Market();
     _office = new Office();
     _buildings = new BuildingBase<TraderParameters>[] { _office };
     _market.SellGood(Goods.Corn, _buildings);
 }
コード例 #2
0
 public void Initialize()
 {
     _market = new Market();
     _largetMarket = new LargeMarket();
     _buildings = new BuildingBase<TraderParameters>[] { _largetMarket };
 }
コード例 #3
0
        private void Init()
        {
            Market = new Market();
            AvailablePlantations = new List<Plantation>();

            Warehouse = new Warehouse(10, 11, 11, 9, 9);
            Doubloons = 86;
            Vp = Constants.VpByPlayers[PlayersCount];

            var quarry = MainFactory.GenerateQuarries(8);
            Quarries = new Queue<Quarry>(quarry);

            var plantations = GetPlantations();
            Plantations = new Queue<Plantation>(plantations);

            Ships = MainFactory.GenerateShips(Constants.ShipsByPlayers[PlayersCount]);

            Colonists.ReceiveColonist(Constants.ColonistsByPlayers[PlayersCount]);

            RoleCards = MainFactory.GenerateRoleCards(Constants.RolesByPlayers[PlayersCount]);

            Colonists.Move(AvailableColonists, PlayersCount);

            Buildings = MainFactory.GenerateBuildings(PlayersCount);
        }