public ElementConeAction(Entity owner, Vec target, int radius, INoun noun, Attack attack)
     : base(owner, target, radius)
 {
     mNoun   = noun;
     mAttack = attack;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new Hit that cannot be dodged.
 /// </summary>
 /// <param name="damage">Damage the hit does.</param>
 public Hit(INoun attacker, Attack attack, Direction direction)
     : this(attacker, attack, false, direction)
 {
 }
Beispiel #3
0
 public HealAction(Entity entity, Attack amount)
     : base(entity)
 {
     mAmount = amount;
 }
Beispiel #4
0
        public override Action GetAction(Monster monster, Entity target)
        {
            Attack attack = new Attack(Info.Damage, Info.Element, Info.Verb, Info.Effect);

            return(new ElementBoltAction(monster, target.Position, Info.Noun, attack));
        }
 public GainHealthAction(Entity entity, Attack amount)
     : base(entity)
 {
     mAmount = amount;
 }