Example #1
0
        public Game(
            IMapTile[][] cityMap
        )
        {
            City = new City(cityMap);
            _currentDate = Trash2012Begin;
            Company = new Company();

            var newTruck1 = new Truck(TrashType.Paper, 25, 1f);
            var newTruck2 = new Truck(TrashType.Paper, 25, 1f);
            Company.Trucks.Add(newTruck1);
            Company.Trucks.Add(newTruck2);

            GameRandomness = new Random();
        }
Example #2
0
        public Game(
            IMapTile[][] cityMap,
            int initialMoneyAmount
        )
        {
            City = new City(cityMap);
            _currentDate = Trash2012Begin;
            Company = new Company(initialMoneyAmount);

            var newTruck1 = new Truck(TrashType.Paper, 50, 1f);
            //var newTruck2 = new Truck(TrashType.Paper, 55, 1f);
            Company.Trucks.Add(newTruck1);
            //Company.Trucks.Add(newTruck2);

            GameRandomness = new Random();
        }