コード例 #1
0
 public ElementConeAction(Entity owner, Vec target, int radius, INoun noun, Attack attack)
     : base(owner, target, radius)
 {
     mNoun   = noun;
     mAttack = attack;
 }
コード例 #2
0
ファイル: Hit.cs プロジェクト: stjordanis/amaranth
 /// <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)
 {
 }
コード例 #3
0
ファイル: HealAction.cs プロジェクト: stjordanis/amaranth
 public HealAction(Entity entity, Attack amount)
     : base(entity)
 {
     mAmount = amount;
 }
コード例 #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));
        }
コード例 #5
0
 public GainHealthAction(Entity entity, Attack amount)
     : base(entity)
 {
     mAmount = amount;
 }