コード例 #1
0
 /// <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);
 }
コード例 #2
0
ファイル: TkClient.cs プロジェクト: unkmc/NtkMemory-Clone
        /// <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();
        }
コード例 #3
0
ファイル: DebuffStatus.cs プロジェクト: unkmc/NtkMemory-Clone
 /// <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)
 {
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
 /// <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);
 }
コード例 #6
0
 /// <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)
 {
 }
コード例 #7
0
 /// <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)
 {
 }
コード例 #8
0
 /// <summary>
 /// Initializes a player's status data.
 /// </summary>
 /// <param name="activity">The activity data of the player.</param>
 protected TkStatus(TkActivity activity)
 {
     Activity = activity;
 }
コード例 #9
0
ファイル: PoetStatus.cs プロジェクト: unkmc/TkMemory
 /// <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);
 }
コード例 #10
0
 /// <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;
 }
コード例 #11
0
 /// <summary>
 /// Initializes a player's status data.
 /// </summary>
 /// <param name="activity">The activity data of the player.</param>
 public TkStatus(TkActivity activity)
 {
     Activity = activity;
 }
コード例 #12
0
 /// <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;
 }