Exemple #1
0
        public void Reset(int width, int height)
        {
            map     = new Map(width, height);
            manager = new UnitAndBuildingManager();

            CreateUnitsAndBuildings();
            map.UpdateMap(manager);

            gameOver = false;
            round    = 0;
        }
Exemple #2
0
        public void LoadGame()
        {
            LoadSettings();

            map     = new Map(loadedMapWidth, loadedMapHeight);
            manager = new UnitAndBuildingManager();
            foreach (string faction in factions)
            {
                manager.AddFaction(faction);
            }

            Load(UNITS_FILENAME);
            Load(BUIDLINGS_FILENAME);

            map.UpdateMap(manager);
        }