Beispiel #1
0
        public MageSpellRepository(Unit caster)
        {
            Spell waterBall      = new Spell("Water Ball", 0.30 * caster.MaxMana);
            Spell fireBall       = new Spell("Fire Ball", 0.25 * caster.MaxMana);
            Spell manaConversion = new Spell("Mana Conversion", 0);
            Spell allOutBlast    = new Spell("All-Out Blast!", caster.MaxMana);

            spells     = new List <Spell>();
            spellCheck = new SpellCheck();
            spells.Add(waterBall);
            spells.Add(fireBall);
            spells.Add(manaConversion);
            spells.Add(allOutBlast);
        }
        public PriestSpellRepository(Unit caster)
        {
            Spell holyLight  = new Spell("Holy Light", 0.3 * caster.MaxMana);
            Spell manaDrain  = new Spell("Mana Drain", 0.1 * caster.MaxMana);
            Spell staffSmash = new Spell("Staff Smash", 0.12 * caster.MaxMana);
            Spell blessing   = new Spell("Blessing", 0.5 * caster.MaxMana);

            spells     = new List <Spell>();
            spellCheck = new SpellCheck();
            spells.Add(holyLight);
            spells.Add(manaDrain);
            spells.Add(staffSmash);
            spells.Add(blessing);
        }
Beispiel #3
0
        public PaladinSpellRepository(Unit caster)
        {
            Spell holyStrike        = new Spell("Holy Strike", 0.15 * caster.MaxMana);
            Spell burningLight      = new Spell("Burning Light", 0.15 * caster.MaxMana);
            Spell viciousSpellGuard = new Spell("Vicious Spell-Guard", 0.3 * caster.MaxMana);
            Spell divineRune        = new Spell("Divine Rune", 0.15 * caster.MaxMana);

            spells     = new List <Spell>();
            spellCheck = new SpellCheck();
            spells.Add(holyStrike);
            spells.Add(burningLight);
            spells.Add(viciousSpellGuard);
            spells.Add(divineRune);
        }
Beispiel #4
0
        public RogueSpellRepository(Unit caster)
        {
            Spell stab         = new Spell("Stab", 0.12 * caster.MaxMana);
            Spell poisonDagger = new Spell("Poison Dagger", 0.3 * caster.MaxMana);
            Spell evasion      = new Spell("Evasion", 0.5 * caster.MaxMana);
            Spell thievery     = new Spell("Thievery", 0.5 * caster.MaxMana);

            spells     = new List <Spell>();
            spellCheck = new SpellCheck();
            spells.Add(stab);
            spells.Add(poisonDagger);
            spells.Add(evasion);
            spells.Add(thievery);
        }
Beispiel #5
0
        public HunterSpellRepository(Unit caster)
        {
            Spell hastingArrow = new Spell("Hasting Arrow", caster.MaxMana * 0.2);
            Spell grassHop     = new Spell("Grass Hop", caster.MaxMana * 0.5);
            Spell volleyShot   = new Spell("Volley Shot", caster.MaxMana * 0.3);
            Spell sharpEye     = new Spell("Sharp Eye", caster.MaxMana * 0.5);

            spells     = new List <Spell>();
            spellCheck = new SpellCheck();
            spells.Add(hastingArrow);
            spells.Add(grassHop);
            spells.Add(volleyShot);
            spells.Add(sharpEye);
        }
Beispiel #6
0
        public WarriorSpellRepository(Unit caster)
        {
            Spell headSmash     = new Spell("Head Smash", 0.5 * caster.MaxMana);
            Spell hyperStrength = new Spell("Hyper Strength", 0.5 * caster.MaxMana);
            Spell ragingBlow    = new Spell("Raging Blow", 0.12 * caster.MaxMana);
            Spell disarm        = new Spell("Disarm", 0.5 * caster.MaxMana);

            Spells     = new List <Spell>();
            spellCheck = new SpellCheck();
            Spells.Add(headSmash);
            Spells.Add(hyperStrength);
            Spells.Add(ragingBlow);
            Spells.Add(disarm);
        }
        public NaturalistSpellRepository(Unit caster)
        {
            Spell naturesTouch = new Spell("Nature's Touch", 0.5 * caster.MaxMana);
            Spell thornBlast   = new Spell("Thorn Blast", 0.35 * caster.MaxMana);
            Spell naturesGift  = new Spell("Nature's Gift", 0);
            Spell pouringRain  = new Spell("Pouring Raind", 0);

            spells     = new List <Spell>();
            spellCheck = new SpellCheck();
            spells.Add(naturesTouch);
            spells.Add(thornBlast);
            spells.Add(naturesGift);
            spells.Add(pouringRain);
        }
        public NecroidSpellRepository(Unit caster)
        {
            Spell shadowTouch    = new Spell("Shadow Touch", 0.25 * caster.MaxMana);
            Spell lifeDrain      = new Spell("Life Drain", 0.35 * caster.MaxMana);
            Spell blind          = new Spell("Blind", 0.15 * caster.MaxMana);
            Spell mutualDarkness = new Spell("Mutual Darkness", 0);

            spells     = new List <Spell>();
            spellCheck = new SpellCheck();
            spells.Add(shadowTouch);
            spells.Add(lifeDrain);
            spells.Add(blind);
            spells.Add(mutualDarkness);
        }