Beispiel #1
0
 /// <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));
 }
Beispiel #2
0
 /// <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>();
 }
Beispiel #3
0
 /// <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>())
 {
 }
Beispiel #4
0
 /// <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;
 }
Beispiel #5
0
 /// <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)
 {
 }
Beispiel #6
0
 public Looter(Cavebot parent)
 {
     this.Parent = parent;
     this.ResetEvent = new ManualResetEventSlim();
     this.ResetEventMultiUse = new AutoResetEvent(false);
 }