Exemple #1
0
 protected virtual void RemoveItemEffects(Item item)
 {
     this.HealthPoints -= item.HealthEffect;
     this.DefensePoints -= item.DefenseEffect;
     if (this.HealthPoints < 0)
     {
         this.HealthPoints = 1;
     }
 }
Exemple #2
0
 public abstract void RemoveFromInventory(Item item);
Exemple #3
0
 protected virtual void ApplyItemEffects(Item item)
 {
     this.HealthPoints += item.HealthEffect;
     this.DefensePoints += item.DefenseEffect;
 }
Exemple #4
0
 public abstract void AddToInventory(Item item);