Exemple #1
0
 public DungeonGUI(int t, MusicManager jbox)
 {
     r     = new Random();
     eTurn = 0;
     sbars = new List <ProgressBar>();
     mm    = jbox;
     d     = new Dungeon(t);
     bc    = new BossCalculator();
     InitializeComponent();
 }
        private void DungeonGUI_Load(object sender, EventArgs e)
        {
            Text = (_state.DungeonType == DungeonType.FINAL) ? "God's Domain" : $"Tier {_state.dungeonTiers[_state.DungeonType]} Boss Dungeon";

            dgh = new DungeonGUIHelper(_state, this);

            // set up the lists here since we need to reuse "SetUpEnemyGUI" later
            subbars.AddRange(new ProgressBar[] { subbar, subbar2, subbar3, subbar4, subbar5, subbar6, subbar7, subbar8, subbar9,
                                                 subbar10, subbar11, subbar12, subbar13, subbar14, subbar15, subbar16, subbar17, subbar18, subbar19, subbar20, subbar21 });

            bc = new BossCalculator(subbars.Count);

            dgh.Start();

            Skills.SelectedIndex = 1;
        }