Exemplo n.º 1
0
 /// <summary>
 /// Initializes all game client data associated with a Rogue.
 /// </summary>
 /// <param name="classMemory">The application memory for the Rogue's game client.</param>
 public RogueClient(ClassMemory classMemory) : base(classMemory)
 {
     Self.BasePath = BasePath.Rogue;
     Spells        = new RogueSpells(classMemory);
     Status        = new RogueStatus(this);
     Commands      = new RogueCommands(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes all game client data associated with a Warrior.
 /// </summary>
 /// <param name="classMemory">The application memory for the Warrior's game client.</param>
 public WarriorClient(ClassMemory classMemory) : base(classMemory)
 {
     Self.BasePath = BasePath.Warrior;
     Spells        = new WarriorSpells(classMemory);
     Status        = new WarriorStatus(this);
     Commands      = new WarriorCommands(this);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes all game client data associated with a Peasant.
 /// </summary>
 /// <param name="classMemory">The application memory for the Peasant's game client.</param>
 public PeasantClient(ClassMemory classMemory) : base(classMemory)
 {
     Self.BasePath = BasePath.Peasant;
     Spells        = new PeasantSpells(classMemory);
     Status        = new TkStatus(this.Activity);
     Commands      = new PeasantCommands(this);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes data specific to the player.
 /// </summary>
 /// <param name="classMemory">The application memory for the player's game client.</param>
 public TkSelf(ClassMemory classMemory)
 {
     _classMemory = classMemory;
     Mana         = new SelfMana(_classMemory);
     Name         = _classMemory.ReadString(TkAddresses.Self.Name, Constants.DefaultEncoding);
     Path         = _classMemory.ReadString(TkAddresses.Self.Path, Constants.DefaultEncoding);
     Uid          = _classMemory.Read <uint>(TkAddresses.Self.Uid);
     Vita         = new SelfVita(_classMemory);
 }
Exemplo n.º 5
0
        /// <summary>
        /// Initializes a player's activity data.
        /// </summary>
        /// <param name="classMemory">The application memory for the player's game client.</param>
        public TkActivity(ClassMemory classMemory)
        {
            _classMemory            = classMemory;
            _defaultCommandCooldown = MinimumSpellCooldownInMilliseconds;
            _timeOfPreviousCommand  = DateTime.Now.AddMilliseconds(-MaximumSpellCooldownInMilliseconds);

            Asv     = new AsvActivity(this);
            Debuffs = new DebuffActivity(this);
        }
Exemplo n.º 6
0
        /// <summary>
        /// Initializes a player's group data.
        /// </summary>
        /// <param name="classMemory">The application memory for the player's game client.</param>
        public TkGroup(ClassMemory classMemory)
        {
            _classMemory = classMemory;

            Mana = new GroupMana(_classMemory);
            Vita = new GroupVita(_classMemory);

            MultiboxMembers = new List <TkClient>();
            ExternalMembers = new List <GroupMember>();
        }
Exemplo n.º 7
0
        /// <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();
        }
Exemplo n.º 8
0
        /// <summary>
        /// Initializes a player's spell data.
        /// </summary>
        /// <param name="classMemory">The application memory for the player's game client.</param>
        protected TkSpells(ClassMemory classMemory)
        {
            _classMemory = classMemory;

            Spells = new List <Spell>();

            for (var i = 0; i < MaxNumberOfSpells; i++)
            {
                var name = GetName(i);

                if (string.IsNullOrWhiteSpace(name))
                {
                    continue;
                }

                Spells.Add(new Spell(i, name));
            }
        }
Exemplo n.º 9
0
 /// <summary>
 /// Initializes a player's position data.
 /// </summary>
 /// <param name="classMemory">The application memory for the player's game client.</param>
 public Coordinates(ClassMemory classMemory)
 {
     _classMemory = classMemory;
 }
Exemplo n.º 10
0
 /// <summary>
 /// Initializes a player's chat data.
 /// </summary>
 /// <param name="classMemory">The application memory for the player's game client.</param>
 public TkChat(ClassMemory classMemory)
 {
     _classMemory = classMemory;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Initializes a Peasant's spell data.
 /// </summary>
 /// <param name="classMemory">The application memory for the Peasant's game client.</param>
 public PeasantSpells(ClassMemory classMemory) : base(classMemory)
 {
     KeySpells = new PeasantKeySpells(Spells);
 }
Exemplo n.º 12
0
 /// <summary>
 /// Initializes all game client data associated with a Mage or Poet.
 /// </summary>
 /// <param name="classMemory">The application memory for the Mage's or Poet's game client.</param>
 public CasterClient(ClassMemory classMemory) : base(classMemory)
 {
 }
Exemplo n.º 13
0
 /// <summary>
 /// Initializes a Mage's spell data.
 /// </summary>
 /// <param name="classMemory">The application memory for the Mage's game client.</param>
 public MageSpells(ClassMemory classMemory) : base(classMemory)
 {
     KeySpells = new MageKeySpells(Spells);
 }
Exemplo n.º 14
0
 /// <summary>
 /// Initializes a player's map data.
 /// </summary>
 /// <param name="classMemory">The application memory for the player's game client.</param>
 public Map(ClassMemory classMemory)
 {
     _classMemory = classMemory;
     Coordinates  = new Coordinates(_classMemory);
 }
Exemplo n.º 15
0
 /// <summary>
 /// Initializes a player's item data.
 /// </summary>
 /// <param name="classMemory">The application memory for the player's game client.</param>
 public TkInventory(ClassMemory classMemory)
 {
     _classMemory = classMemory;
     Update();
 }
Exemplo n.º 16
0
 /// <summary>
 /// Initializes a Poet's spell data.
 /// </summary>
 /// <param name="classMemory">The application memory for the Poet's game client.</param>
 public PoetSpells(ClassMemory classMemory) : base(classMemory)
 {
     KeySpells = new PoetKeySpells(Spells);
 }
Exemplo n.º 17
0
 /// <summary>
 /// Initializes a player's environmental data.
 /// </summary>
 /// <param name="classMemory">The application memory for the player's game client.</param>
 public TkEnvironment(ClassMemory classMemory)
 {
     _classMemory = classMemory;
     Map          = new Map(_classMemory);
 }
Exemplo n.º 18
0
 /// <summary>
 /// Initializes a player's group vita data.
 /// </summary>
 /// <param name="classMemory">The application memory for the player's game client.</param>
 public GroupVita(ClassMemory classMemory)
 {
     _classMemory = classMemory;
 }
Exemplo n.º 19
0
 /// <summary>
 /// Initializes a Rogue's spell data.
 /// </summary>
 /// <param name="classMemory">The application memory for the Rogue's game client.</param>
 public RogueSpells(ClassMemory classMemory) : base(classMemory)
 {
     KeySpells = new RogueKeySpells(Spells);
 }
Exemplo n.º 20
0
 /// <summary>
 /// Initializes a player's vita data.
 /// </summary>
 /// <param name="classMemory">The application memory for the player's game client.</param>
 public SelfVita(ClassMemory classMemory)
 {
     _classMemory = classMemory;
 }
Exemplo n.º 21
0
 /// <summary>
 /// Initializes a player's mana data.
 /// </summary>
 /// <param name="classMemory">The application memory for the player's game client.</param>
 public SelfMana(ClassMemory classMemory)
 {
     _classMemory = classMemory;
 }
Exemplo n.º 22
0
 /// <summary>
 /// Initializes a player's targeting data.
 /// </summary>
 /// <param name="classMemory">The application memory for the player's game client.</param>
 public TkTargeting(ClassMemory classMemory)
 {
     _classMemory = classMemory;
 }
Exemplo n.º 23
0
 /// <summary>
 /// Instantiates a factory for the specified application.
 /// </summary>
 /// <param name="processId">The process ID of the application.</param>
 public TkClientFactory(int processId)
 {
     ClassMemory = new ClassMemory(processId);
     TkSelf      = new TkSelf(ClassMemory);
 }
Exemplo n.º 24
0
 /// <summary>
 /// Initializes all game client data associated with a Rogue or Warrior.
 /// </summary>
 /// <param name="classMemory">The application memory for the Rogue's or Warrior's game client.</param>
 public FighterClient(ClassMemory classMemory) : base(classMemory)
 {
 }
Exemplo n.º 25
0
        /// <summary>
        /// Instantiates a factory for the specified application.
        /// </summary>
        /// <param name="processName">The process name of the application.</param>

        public TkClientFactory(string processName)
        {
            ClassMemory = new ClassMemory(processName);
            TkSelf      = new TkSelf(ClassMemory);
        }
Exemplo n.º 26
0
 /// <summary>
 /// Initializes a player's group mana data.
 /// </summary>
 /// <param name="classMemory">The application memory for the player's game client.</param>
 public GroupMana(ClassMemory classMemory)
 {
     _classMemory = classMemory;
 }
Exemplo n.º 27
0
 /// <summary>
 /// Initializes retrieval of position data from the application memory of the game.
 /// </summary>
 /// <param name="classMemory">The application memory for the player's game client.</param>
 public Pixels(ClassMemory classMemory)
 {
     _classMemory = classMemory;
 }
Exemplo n.º 28
0
 /// <summary>
 /// Initializes a Warrior's spell data.
 /// </summary>
 /// <param name="classMemory">The application memory for the Warrior's game client.</param>
 public WarriorSpells(ClassMemory classMemory) : base(classMemory)
 {
     KeySpells = new WarriorKeySpells(Spells);
 }
Exemplo n.º 29
0
 /// <summary>
 /// Initializes the entity data for an NPC or player.
 /// </summary>
 /// <param name="classMemory">The application memory for the player's game client.</param>
 public TkEntity(ClassMemory classMemory)
 {
     _classMemory = classMemory;
     Coordinates  = new Coordinates(_classMemory);
     Pixels       = new Pixels(_classMemory);
 }