Beispiel #1
0
 public GameThread(D2gsConnection connection, UInt32 chickenLife, UInt32 potLife)
 {
     m_d2gsConnection = connection;
     m_gameData = new GameData();
     m_gameData.ChickenLife = chickenLife;
     m_gameData.PotLife = potLife;
 }
Beispiel #2
0
 public Player(String name, UInt32 id, GameData.CharacterClassType class_, UInt32 level, Int32 x, Int32 y)
     : base(id,x,y)
 {
     m_name = name;
     m_class = class_;
     m_level = level;
     m_directoryKnown = true;
 }
Beispiel #3
0
 public Player(String name, UInt32 id, GameData.CharacterClassType class_, UInt32 level)
     : base(id, 0, 0)
 {
     m_name = name;
     m_class = class_;
     m_level = level;
     m_directoryKnown = false;
 }
Beispiel #4
0
        public AsciiMap(GameData gameData, D2gsConnection connection)
        {
            m_gameData = gameData;
            m_connection = connection;

            m_map = new MapPoint[width,height];
            for (int x = 0; x < width; x++)
            {
                for (int y = 0; y < height; y++)
                {
                    m_map[x, y] = ' ';
                }
            }
        }
Beispiel #5
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();
        }
Beispiel #6
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);
 }