示例#1
0
文件: Player.cs 项目: Mashakal/Gaston
        // CONSTRUCTOR //
        public Player(string pName, string pDescription, int pHealth)
        {
            _name = pName;
            _description = pDescription;
            _health = pHealth;
            _equippedWeapon = null;

            // Set the value of _damage
            UpdateDamage();
        }
示例#2
0
文件: Player.cs 项目: Mashakal/Gaston
 public int Equip(Weapon pItemToEquip)
 {
     _equippedWeapon = pItemToEquip;
     return 0;
 }