コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: BotSession.cs プロジェクト: Chirmaya/Everquest2Bot
        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;
        }
コード例 #3
0
ファイル: BrBotting.cs プロジェクト: Chirmaya/Everquest2Bot
        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;
        }