internal void StartSession(BotAiTypes botAiType, int leaderPosition, Point nameBoxOffset, Point groupBoxOffset) { m_BotSession = new BotSession(botAiType, leaderPosition, nameBoxOffset, groupBoxOffset); m_BotSession.LogMessageHandler += HandleLogMessage; m_BotSession.RunWorkerAsync(); }
public BotSession(BotAiTypes botAiType, int leaderPosition, Point nameBoxOffset, Point groupBoxOffset) { WorkerSupportsCancellation = true; DoWork += BotSession_DoWork; m_brBotting = new BrBotting(botAiType, leaderPosition, nameBoxOffset, groupBoxOffset); m_brBotting.LogMessageHandler += HandleLogMessage; }
public BrBotting(BotAiTypes botAiType, int leaderPosition, System.Drawing.Point nameBoxOffset, System.Drawing.Point groupBoxOffset) { m_botAiType = botAiType; m_leaderPosition = leaderPosition; m_eq2ClientInterface = new Eq2ClientInterface(leaderPosition); m_eq2ClientInterface.LogMessageHandler += HandleLogMessage; Eq2ClientInterfacePositions.NameBoxOffset = nameBoxOffset; Eq2ClientInterfacePositions.GroupBoxOffset = groupBoxOffset; }