/// <summary> /// Initializes a Mage's status data. /// </summary> /// <param name="activity">The activity data of the Mage.</param> public MageStatus(TkActivity activity) : base(activity) { Doze = new BuffStatus(activity, Mage.Doze); Hellfire = new BuffStatus(activity, Mage.Hellfire); Inferno = new BuffStatus(activity, Mage.Inferno); Sleep = new BuffStatus(activity, Mage.Sleep); }
/// <summary> /// Initializes all game client data associated with a player. /// </summary> /// <param name="classMemory">The application memory for the player's game client.</param> protected TkClient(ClassMemory classMemory) { Activity = new TkActivity(classMemory); Chat = new TkChat(classMemory); Environment = new TkEnvironment(classMemory); Group = new TkGroup(classMemory); Inventory = new TkInventory(classMemory); Npcs = new List <Npc>(); Self = new TkSelf(classMemory); Targeting = new TkTargeting(classMemory); _processId = Convert.ToInt32(classMemory.ToString().Replace("_classMemory", string.Empty)); _botStartTime = DateTime.Now; _startingExp = Self.Exp; _timeOfPreviousNpcScan = DateTime.Now.AddSeconds(-NpcScanCooldownInSeconds); StartAutoHotkeyDllErrorHandler(); }
/// <summary> /// Initializes the key spell properties used to track the status of the debuff. /// </summary> /// <param name="activity">The activity data of the player.</param> /// <param name="aliases">A list of all unaligned and aligned names of the debuff.</param> public DebuffStatus(TkActivity activity, IEnumerable <KeySpell> aliases) : base(activity, aliases) { }
/// <summary> /// Initializes the key spell properties used to track the status of the key spell. /// </summary> /// <param name="activity">The activity data of the player.</param> /// <param name="aliases">A list of all unaligned and aligned names of the key spell.</param> protected KeySpellStatus(TkActivity activity, IEnumerable <KeySpell> aliases) { Aliases = aliases.Select(buff => buff.AlignedName).ToArray(); Activity = activity; _timeOfPreviousCasting = DateTime.Now.AddMilliseconds(-DefaultCooldownInMilliseconds); }
/// <summary> /// Initializes a Mage's or Poet's status data. /// </summary> /// <param name="activity">The activity data of the Mage or Poet.</param> protected CasterStatus(TkActivity activity) : base(activity) { Invoke = new BuffStatus(Activity, Caster.Invoke); }
/// <summary> /// Initializes a Rogue's or Warrior's status data. /// </summary> /// <param name="activity">The activity data of the Rogue or Warrior.</param> public FighterStatus(TkActivity activity) : base(activity) { }
/// <summary> /// Initializes the key spell properties used to track the status of the buff. /// </summary> /// <param name="activity">The activity data of the player.</param> /// <param name="aliases">A list of all unaligned and aligned names of the buff.</param> public InvisibleStatus(TkActivity activity, IEnumerable <KeySpell> aliases) : base(activity, aliases) { }
/// <summary> /// Initializes a player's status data. /// </summary> /// <param name="activity">The activity data of the player.</param> protected TkStatus(TkActivity activity) { Activity = activity; }
/// <summary> /// Initializes a Poet's status data. /// </summary> /// <param name="activity">The activity data of the Poet.</param> public PoetStatus(TkActivity activity) : base(activity) { HardenBody = new BuffStatus(Activity, Poet.HardenBody); Restore = new BuffStatus(Activity, Poet.Restore); }
/// <summary> /// Initializes the key spell properties used to track the status of the buff. /// </summary> /// <param name="activity">The activity data of the player.</param> /// <param name="aliases">A list of all unaligned and aligned names of the buff.</param> public BuffStatus(TkActivity activity, IEnumerable <KeySpell> aliases) : base(activity, aliases) { _inactiveCount = RequiredInactiveCount; }
/// <summary> /// Initializes a player's status data. /// </summary> /// <param name="activity">The activity data of the player.</param> public TkStatus(TkActivity activity) { Activity = activity; }
/// <summary> /// Initializes the key spell properties used to track the status of the buff. /// </summary> /// <param name="activity">The activity data of the player.</param> /// <param name="aliases">A list of all unaligned and aligned names of the buff.</param> public BuffStatus(TkActivity activity, IEnumerable <KeySpell> aliases) : base(activity, aliases) { LatestInactivity = DateTime.Now.AddMilliseconds(-activity.DefaultCommandCooldown); InactiveCount = RequiredInactiveCount; }