Example #1
0
 public Sob(NPC associatedNPC)
 {
     this.associatedNPC = associatedNPC;
     _baseentity = new BaseEntity(this);
     _screen = new ProjectX_V3_Game.Core.Screen(this);
 }
Example #2
0
 public Monster()
 {
     _screen = new ProjectX_V3_Game.Core.Screen(this);
     _baseentity = new BaseEntity(this);
 }
Example #3
0
        public GameClient()
        {
            IsAIBot = true;
            this.socketClient = new ProjectX_V3_Lib.Network.SocketClient();
            socketClient.Owner = this;
            socketClient.Crypto = new ProjectX_V3_Lib.Cryptography.GameCrypto(Program.Config.ReadString("GameKey").GetBytes());

            _screen = new ProjectX_V3_Game.Core.Screen(this);
            _baseentity = new BaseEntity(this);
            _maxhp = 0;
            _maxmp = 0;

            _inventory = new ProjectX_V3_Game.Data.Inventory(this);
            _equipments = new ProjectX_V3_Game.Data.Equipments(this);
            _trade = new ProjectX_V3_Game.Data.TradeData();

            _spelldata = new ProjectX_V3_Game.Data.SpellData(this);

            _subclasses = new SubClasses();

            Warehouses = new ConcurrentDictionary<ushort, ProjectX_V3_Game.Data.Warehouse>();
            foreach (ushort whID in whids)
            {
                if (!Warehouses.TryAdd(whID, new Data.Warehouse(this, whID)))
                    throw new Exception("Failed to add Warehouse...");
            }
            TournamentScore = new ProjectX_V3_Game.Tournaments.TournamentScore();
            TournamentInfo = new ProjectX_V3_Game.Tournaments.TournamentInfo(this);

            Arena = new ProjectX_V3_Game.Data.ArenaInfo(this);
            Pets = new ConcurrentDictionary<int, BattlePet>();

            Permission = Enums.PlayerPermission.Normal;
        }
Example #4
0
 public NPC()
 {
     _screen = new ProjectX_V3_Game.Core.Screen(this);
     _baseentity = new BaseEntity(this);
     _maxhp = 0;
     _maxmp = 0;
 }