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>(); }
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>(); }
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)); }
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)); } }