Beispiel #1
0
        private void Menu_Load(object sender, EventArgs e)
        {
            CaveSystem tempCaveSystem = new CaveSystem();
            //List<String> playableCaves = tempCaveSystem.getPlayableCaves();

            List <string> playableCaves = new List <string>()
            {
                "system0",
                "system1",
                "system2",
                "system3",
                "system4",
                "system5",
            };

            foreach (string cave in playableCaves)
            {
                caveList.Items.Add(cave);
            }
        }
Beispiel #2
0
        public Game(String n, String c, bool t, int caveID)
        {
            Name                 = n;
            CaveNumber           = caveID.ToString();
            PlayerManager        = new Player();
            CaveManager          = new CaveSystem(c);
            TriviaObject         = new TriviaManager();
            HighScoreTracker     = new HighScoreManager();
            LocationManager      = new Location();
            LocationManager.Cave = CaveManager;
            SoundManager         = new Sound();


            GameUI            = new GameForm();
            GameUI.GameObject = this;
            LocationManager.InitializePosition();
            SoundManager.PlayBackground();
            GameUI.TestMode = t;
            GameUI.ShowDialog();
        }