コード例 #1
0
ファイル: Main.cs プロジェクト: nirinium/WorkWork
        public Main(Profile profile, Spells spells, Settings settings, BlackMagic magic, Label mobs, Label died, Label averageHealth, Label averageMana, Label loopLabel)
        {
            this.magic    = magic;
            this.profile  = profile;
            this.spells   = spells;
            this.settings = settings;
            wayPoints     = profile.GetWaypoints();
            ghostPoints   = profile.GetGhostpoints();
            sellPoints    = profile.GetSellpoints();

            objectManager = new ObjectManager(magic);

            statistics = new Statistics(this, mobs, died, averageHealth, averageMana, loopLabel);
            Thread statisticsThread = new Thread(statistics.DoWork);

            statisticsThread.Start();


            keyboardSim = new KeyboardSim();
            other       = new Other(this, magic, keyboardSim, objectManager, settings);
            combat      = new Combat(this, keyboardSim, objectManager, magic, settings, spells, statistics, profile);
            pathing     = new Pathing(this, magic, keyboardSim, objectManager, settings, profile);
            gathering   = new Gathering(this, settings, objectManager, magic);

            walk      = settings.GetKey("walk");
            turnleft  = settings.GetKey("turnleft");
            turnright = settings.GetKey("turnright");

            if (settings.Sell)
            {
                sell = 0;
            }
        }
コード例 #2
0
ファイル: Combat.cs プロジェクト: nirinium/WorkWork
 //tab, escape
 public Combat(Main bot, KeyboardSim keyboardSim, ObjectManager objectManager, BlackMagic magic, Settings settings, Spells spells, Statistics statistics, Profile profile)
 {
     this.bot           = bot;
     this.keyboardSim   = keyboardSim;
     this.objectManager = objectManager;
     this.magic         = magic;
     this.settings      = settings;
     this.spells        = spells;
     this.statistics    = statistics;
     this.profile       = profile;
     targetKey          = settings.GetKey("target");
     escape             = settings.GetKey("escape");
 }
コード例 #3
0
 //Left, right, up, down
 public Pathing(Main bot, BlackMagic magic, KeyboardSim keyboardSim, ObjectManager objectManager, Settings settings, Profile profile)
 {
     this.magic         = magic;
     this.keyboardSim   = keyboardSim;
     this.objectManager = objectManager;
     this.settings      = settings;
     this.profile       = profile;
     this.bot           = bot;
     turnleft           = settings.GetKey("turnleft");
     turnright          = settings.GetKey("turnright");
     walk   = settings.GetKey("walk");
     goup   = settings.GetKey("goup");
     godown = settings.GetKey("godown");
 }
コード例 #4
0
 //Release, retrieve, mount, walk, left, right, loot, drink, eat
 public Other(Main bot, BlackMagic magic, KeyboardSim keyboardSim, ObjectManager objectManager, Settings settings)
 {
     this.bot           = bot;
     this.magic         = magic;
     this.keyboardSim   = keyboardSim;
     this.objectManager = objectManager;
     release            = settings.GetKey("release");
     retrieve           = settings.GetKey("retrieve");
     mount     = settings.GetKey("mount");
     walk      = settings.GetKey("walk");
     turnleft  = settings.GetKey("turnleft");
     turnright = settings.GetKey("turnright");
     loot      = settings.GetKey("loot");
     drink     = settings.GetKey("drink");
     eat       = settings.GetKey("eat");
     handle    = FindWindow(null, "World of Warcraft");
 }