コード例 #1
0
ファイル: Spells.cs プロジェクト: eming44/WOW-Projects
        public Spells(Mage newMageSpells)
        {
            this.mageSpells = newMageSpells;

            if (mageSpells.Equals(Mage.FireBall))
            {
                this.spellName   = "Fire ball";
                this.spellValue  = 160;
                this.spellClass  = new Classes(Classes.Class.Mage);
                this.kindOfSpell = KindOfSpell.Damage;
                this.mana        = 30;
            }
            if (mageSpells.Equals(Mage.PyroBlast))
            {
                this.spellName   = "Pyro blast";
                this.spellValue  = 220;
                this.spellClass  = new Classes(Classes.Class.Mage);
                this.kindOfSpell = KindOfSpell.Damage;
                this.mana        = 50;
            }
            if (mageSpells.Equals(Mage.LivingBomb))
            {
                this.spellName   = "Living bomb";
                this.spellValue  = 520;
                this.spellClass  = new Classes(Classes.Class.Mage);
                this.kindOfSpell = KindOfSpell.Damage;
                this.mana        = 80;
            }
        }