protected void SetName(string name) { if (this.NPC == null) throw new InvalidOperationException("NPC's race has to be set first."); this.NPC.Name = name; }