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/"); } }
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); } }
public MoveManager(WebBrowser wb, GetSatus getstats) { _getStats = getstats; _wB = wb; }
public Auftragsmanager(GetSatus getstats, WebBrowser wb) { _wB = wb; _getStats = getstats; Loadaufträge(); }
public Actions(WebBrowser wB, GetSatus get) { getStats = get; _wB = wB; //frm.Show(); }