Ejemplo n.º 1
0
 public Profile(
     int points,
     string id,
     PlayerEmployer employer,
     List <InventoryItem> inventory)
 {
     Points    = points;
     ID        = id;
     Employer  = employer;
     Inventory = inventory;
 }
Ejemplo n.º 2
0
        public PlayerEntity(Profile profile) :
            base(EntityType.PLAYER, profile.ID,
                 new Microsoft.Xna.Framework.Vector2(33),
                 200, 3f / 16)
        {
            Employer = profile.Employer;
            _points  = profile.Points;

            Weapons = new List <Weapon>();
            Weapons.Add(GameAndStuff.Profile.getWeaponFromInventoryItem(InventoryItem.PISTOL, this));
            //foreach (GameAndStuff.InventoryItem i in profile.Inventory)
            //    Weapons.Add(GameAndStuff.Profile.
            //        getWeaponFromInventoryItem(i, this));

            ActiveWeapon = Weapons[0];
            _weaponIndex = 0;

            Direction = MovementDirection.NONE;
            // TODO : add weapon
        }