/// <summary> /// Constructor for a target. /// </summary> /// <param name="parent">The Cavebot module that will hosts this object.</param> /// <param name="name">The name of the creature to look for.</param> /// <param name="settings">A collection of Target.Setting objects, used as criterias when finding a new target.</param> public Target(Cavebot parent, string name, List<Target.Setting> settings) { this.Parent = parent; this.Name = name; this.Settings = settings; this.DoLoot = true; while (this.Settings.Count < this.SettingsMaxCount) this.Settings.Add(Target.Setting.GetDefaults(this)); }
/// <summary> /// Constructor for this class. /// </summary> /// <param name="parent">The Cavebot module that will host this object.</param> public Targeting(Cavebot parent) { this.Parent = parent; this.ResetEvent = new ManualResetEventSlim(); this.ResetEventCacheUpdated = new AutoResetEvent(false); this.StopwatchExhaust = new Stopwatch(); this.CreatureTimestamps = new Dictionary<uint, long>(); this.CreatureWatchlist = new Dictionary<uint, Objects.Location>(); }
/// <summary> /// Constructor for an empty target. /// </summary> /// <param name="parent">The Cavebot module that will hosts this object.</param> public Target(Cavebot parent) : this(parent, "New monster", new List<Setting>()) { }
/// <summary> /// Constructor for this class. /// </summary> /// <param name="parent">The Cavebot module that will host this script.</param> /// <param name="code">The C# code that will be run when this script is executed.</param> /// <param name="waypoint">The waypoint to associate with this script.</param> public Script(Cavebot parent, string code, Waypoint waypoint) { this.Parent = parent; this.Code = code; this.Waypoint = waypoint; }
/// <summary> /// Constructor for this class. /// </summary> /// <param name="parent">The Cavebot module that will host this script.</param> /// <param name="code">The C# code that will be run when this script is executed.</param> public Script(Cavebot parent, string code) : this(parent, code, null) { }
public Looter(Cavebot parent) { this.Parent = parent; this.ResetEvent = new ManualResetEventSlim(); this.ResetEventMultiUse = new AutoResetEvent(false); }