예제 #1
0
        public void LoadData()
        {
            //Main
            nameText.Text = monster.Name;
            levelText.Text = monster.Level.ToString();
            raceText.Text = monster.Roll;
            sizeText.Text = monster.Size;
            originText.Text = monster.Origin;
            typeText.Text = monster.Type;
            xpText.Text = monster.XPValue.ToString();

            //Body
            initText.Text = monster.Initiative.ToString();
            sensesText.Text = monster.Senses;
            hpText.Text = monster.HP.ToString();
            bloodiedText.Text = monster.Bloodied.ToString();
            acText.Text = monster.AC.ToString();
            fortText.Text = monster.Fort.ToString();
            refText.Text = monster.Ref.ToString();
            willText.Text = monster.Will.ToString();
            savesText.Text = monster.SavesMod;
            resistsText.Text = monster.Resists;
            speedText.Text = monster.Speed.ToString();
            actionPointsText.Text = monster.ActionPoints;
            alignmentText.Text = monster.Alignment;
            languageText.Text = monster.Languages;
            skillsText.Text = monster.Skills;
            equipmentText.Text = monster.Equipment;

            //Scores
            strScoreText.Text = monster.AttributesDict[ClassStuff.Attributes.Strength].ToString();
            conScoreText.Text = monster.AttributesDict[ClassStuff.Attributes.Constitution].ToString();
            dexScoreText.Text = monster.AttributesDict[ClassStuff.Attributes.Dexterity].ToString();
            intScoreText.Text = monster.AttributesDict[ClassStuff.Attributes.Intelligence].ToString();
            wisScoreText.Text = monster.AttributesDict[ClassStuff.Attributes.Wisdom].ToString();
            chaScoreText.Text = monster.AttributesDict[ClassStuff.Attributes.Charisma].ToString();
            strModText.Text = Monster.GetMod(monster.AttributesDict[ClassStuff.Attributes.Strength]).ToString();
            conModText.Text = Monster.GetMod(monster.AttributesDict[ClassStuff.Attributes.Constitution]).ToString();
            dexModText.Text = Monster.GetMod(monster.AttributesDict[ClassStuff.Attributes.Dexterity]).ToString();
            intModText.Text = Monster.GetMod(monster.AttributesDict[ClassStuff.Attributes.Intelligence]).ToString();
            wisModText.Text = Monster.GetMod(monster.AttributesDict[ClassStuff.Attributes.Wisdom]).ToString();
            chaModText.Text = Monster.GetMod(monster.AttributesDict[ClassStuff.Attributes.Charisma]).ToString();

            //Powers
            powerTabCtrl.TabPages.Clear();
            foreach (MinionPower f in monster.Attacks)
            {
                TabPage p = new TabPage();
                p.Text = f.Name;
                MinionPowerCtrl ctrl = new MinionPowerCtrl(f);
                p.Controls.Add(ctrl);
                powerTabCtrl.TabPages.Add(p);
            }

            //Auras
            auraTabCtrl.TabPages.Clear();
            foreach (Aura f in monster.Auras)
            {
                TabPage p = new TabPage();
                p.Text = f.Name;
                AuraCtrl ctrl = new AuraCtrl(f);
                p.Controls.Add(ctrl);
                auraTabCtrl.TabPages.Add(p);
            }
        }
예제 #2
0
 private void addAuraButton_Click(object sender, EventArgs e)
 {
     TabPage p = new TabPage();
     AuraCtrl ctrl = new AuraCtrl(new Aura());
     p.Controls.Add(ctrl);
     auraTabCtrl.TabPages.Add(p);
 }