예제 #1
0
 public Target(CreatureData c, FightActions action, byte priority, FightSecurity security, FightStances stance, Attack attackMode, Follow followMode)
     : base(c.Name, c.HitPoints, c.ExperiencePoints, c.SummonMana, c.ConvinceMana, c.MaxDamage, c.CanIllusion, c.CanSeeInvisible, c.FrontAttack, c.Immunities, c.Strengths, c.Weaknesses, c.Sounds, c.Loot)
 {
     this.Action = action;
     this.Priority = priority;
     this.Security = security;
     this.Stance = stance;
     this.AttackMode = attackMode;
     this.FollowMode = followMode;
     this.Extra = new List<FightExtraPair>();
 }
예제 #2
0
 public Target(CreatureData c, FightActions action, byte priority, FightSecurity security, FightStances stance, Attack attackMode, Follow followMode)
     : base(c.Name, c.HitPoints, c.ExperiencePoints, c.SummonMana, c.ConvinceMana, c.MaxDamage, c.CanIllusion, c.CanSeeInvisible, c.FrontAttack, c.Immunities, c.Strengths, c.Weaknesses, c.Sounds, c.Loot)
 {
     this.Action     = action;
     this.Priority   = priority;
     this.Security   = security;
     this.Stance     = stance;
     this.AttackMode = attackMode;
     this.FollowMode = followMode;
     this.Extra      = new List <FightExtraPair>();
 }
예제 #3
0
        public void AddTarget(string name, FightActions action, byte priority, FightSecurity security, FightStances stance, Attack attackMode, Follow followMode)
        {
            CreatureData c = null;

            if (CreatureLists.AllCreatures.ContainsKey(name))
            {
                c = CreatureLists.AllCreatures[name];
            }
            else
            {
                c = new CreatureData(name, 0, 0, 0, 0, 0, false, false, FrontAttack.None, null, null, null, null, null);
            }

            Targets.Add(new Target(c, action, priority, security, stance, attackMode, followMode));
        }
예제 #4
0
 public void AddAllCreatures(FightActions action, byte priority, FightSecurity security, FightStances stance, Attack attackMode, Follow followMode)
 {
     foreach (var c in CreatureLists.AllCreatures)
     {
         Targets.Add(new Target(c.Value, action, priority, security, stance, attackMode, followMode));
     }
 }
예제 #5
0
        public void AddTarget(string name, FightActions action, byte priority, FightSecurity security, FightStances stance, Attack attackMode, Follow followMode)
        {
            CreatureData c = null;

            if (CreatureLists.AllCreatures.ContainsKey(name))
            {
                c = CreatureLists.AllCreatures[name];
            }
            else
            {
                c = new CreatureData(name, 0, 0, 0, 0, 0, false, false, FrontAttack.None, null, null, null, null, null);
            }

            Targets.Add(new Target(c, action, priority, security, stance, attackMode, followMode));
        }
예제 #6
0
 public void AddAllCreatures(FightActions action, byte priority, FightSecurity security, FightStances stance, Attack attackMode, Follow followMode)
 {
     foreach (var c in CreatureLists.AllCreatures)
     {
         Targets.Add(new Target(c.Value, action, priority, security, stance, attackMode, followMode));
     }
 }