Esempio n. 1
0
        public void StartBot()
        {
            Player.Name = Settings._Username;

            if (isWorkerThread)
            {
                getStats = new GetSatus(webBrowser1);
                manager  = new Manager(webBrowser1, getStats, pathFinder, isWorkerThread);
                pathFinder.LoadPoints();
                LoadAllFiles();
                if (Settings._World == "rpsrv")
                {
                    webBrowser1.Navigate("http://www.freewar.de/rpserver)");
                }
                else
                {
                    webBrowser1.Navigate("http://" + Settings._World + ".freewar.de/freewar/");
                }
                timer1.Start();
                timer2.Start();
                timer3.Start();
            }
            else
            {
                manager = new Manager(webBrowser1, getStats, pathFinder, isWorkerThread);
                LoadAllFiles();
                // webBrowser1.Navigate("http://" + Settings._World + ".freewar.de/freewar/");
            }
        }
Esempio n. 2
0
 public Manager(WebBrowser wb, GetSatus get, PathFinder p, bool isworker)
 {
     if (isworker)
     {
         pathFinder       = p;
         getStats         = get;
         _wB              = wb;
         actions          = new Actions(wb, get);
         _AbilityTrainer  = new AbilityTrainer(wb);
         _moveManager     = new MoveManager(wb, get);
         _auftragsmanager = new Auftragsmanager(get, wb);
     }
 }
Esempio n. 3
0
 public MoveManager(WebBrowser wb, GetSatus getstats)
 {
     _getStats = getstats;
     _wB       = wb;
 }
Esempio n. 4
0
 public Auftragsmanager(GetSatus getstats, WebBrowser wb)
 {
     _wB       = wb;
     _getStats = getstats;
     Loadaufträge();
 }
Esempio n. 5
0
 public Actions(WebBrowser wB, GetSatus get)
 {
     getStats = get;
     _wB      = wB;
     //frm.Show();
 }