Exemple #1
0
 public AlphaBot(bool pindle, bool eld, bool shenk, DataManager dm, String bnetServer, String account, String password, String classicKey, String expansionKey, uint potlife, uint chickenlife, String binaryDirectory, GameDifficulty difficulty, String gamepass)
     : base(dm,bnetServer,account,password,classicKey,expansionKey,potlife,chickenlife,binaryDirectory,difficulty,gamepass)
 {
     Pindle = pindle;
     Eldritch = eld;
     Shenk = shenk;
     m_redPortal = new Entity();
     m_harrogathWp = new Entity();
     m_act1Wp = new Entity();
 }
Exemple #2
0
        public ClientlessBot(DataManager dm, String bnetServer, String account, String password, String classicKey, String expansionKey, uint potlife, uint chickenlife, String binaryDirectory, GameDifficulty difficulty, String gamepass)
        {
            m_eventQueue = new PriorityQueue<byte, GameEvent>();
            m_battleNetServer = bnetServer;
            m_account = account;
            m_password = password;
            m_binaryDirectory = binaryDirectory;
            m_classicKey = classicKey;
            m_expansionKey = expansionKey;
            m_difficulty = difficulty;
            m_gamePassword = gamepass;
            m_potLife = potlife;
            m_chickenLife = chickenlife;
            m_keyOwner = "AlphaBot";
            m_gameExeInformation = "Game.exe 03/09/10 04:10:51 61440";

            m_dm = dm;
            m_bncs = new Bncs(this);
            m_mcp = new RealmServer(this);
            m_gs = new GameServer(this);
            m_bncsThread = new Thread(m_bncs.ThreadFunction);
            m_mcpThread = new Thread(m_mcp.ThreadFunction);
            m_gameData = new GameData();
            m_gameCreationThread = new Thread(CreateGameThreadFunction);
            m_itemListLock = new Object();
        }
Exemple #3
0
 private ClientlessBot(DataManager dm)
 {
     m_gameExeInformation = "Game.exe 03/09/10 04:10:51 61440";
     m_dm = dm;
     m_bncs = new Bncs(this);
     m_mcp = new RealmServer(this);
     m_gs = new GameServer(this);
     m_bncsThread = new Thread(m_bncs.ThreadFunction);
     m_mcpThread = new Thread(m_mcp.ThreadFunction);
     m_gameData = new GameData();
     m_gameCreationThread = new Thread(CreateGameThreadFunction);
 }
Exemple #4
0
        static void Main(string[] args)
        {
            DataManager dm = new DataManager("data");
            Pickit.InitializePickit();
            AlphaBot cb;
            AlphaBot cb2;
            AlphaBot cb3;
            if (args.Length < 4)
                Console.WriteLine("Must supply command line args");
            else
            {

                cb.Start();
                Thread.Sleep(5000);
                cb2.Start();
                Thread.Sleep(5000);
                cb3.Start();
            }
            Console.ReadKey();
            return;
        }