Ejemplo n.º 1
0
        /// <summary>
        /// Den här metoden sköter ability2
        /// </summary>
        /// <returns></returns>
        protected override Ability CastAbility2()
        {
            Ability ability = new Healharm(TextureBank.mageSpellList[3], pos, LastDirection);

            Ability2CooldownTimer = ability.coolDownTime;
            SoundBank.SoundEffectList[12].Play();
            return(ability);
        }
Ejemplo n.º 2
0
        public Druid(Texture2D tex, Vector2 pos, int playerIndex, Controller Controller) : base(tex, pos, playerIndex, Controller)
        {
            HealthPoints    = ValueBank.DruidHealth;
            MaxHealthPoints = HealthPoints;

            Ability1 = new Root(TextureBank.mageSpellList[13], pos, LastDirection);
            Ability2 = new Healharm(TextureBank.mageSpellList[3], pos, LastDirection);
            Ability3 = new FlowerPower(TextureBank.mageSpellList[11], pos, new Vector2(0, 0), this);
        }