using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace mmoRL { public class Creature { public int x = 10; public int y = 5; public Image image; public string name = "Unknown"; public int armor = 0; //Combat stats public int HP = 25; public int maxHP = 25; public int strength = 10; public int experience = 0; public void RecoverTo(int targetHP) { this.HP = targetHP; if (this.HP > this.maxHP) this.HP = this.maxHP; } public void Recover(int amount) { RecoverTo(this.HP + amount); } } }