Colonization: A brief glimpse of the game class

public Game(List<IPlayer> players, IGameConfiguration configuration, IWorld world)
        {
            this.Players = players;
            this.GameConfiguration = configuration;
            this.World = world;
        }
        public DateTime StartDate { get; private set; }
        public List<IPlayer> Players { get; private set; }
        public IGameConfiguration GameConfiguration { get; private set; }
        public IWorld World { get; private set; }
        public IPlayer ActivePlayer { get; private set; }
        public void Start()
        {
            this.StartDate = DateTime.Now;
            this.Players = this.GameConfiguration.GetPlayersForGame();
            this.SetActiveUnitsForEachPlayer();
            this.SetActivePlayer();
            this.World.InitializeWorld(this.GameConfiguration.WorldSize, this.gameStartUnits);
        }

Leave a Reply

  

  

  

Time limit is exhausted. Please reload CAPTCHA.