예제 #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;
 }