ProjectMoon / ringmud

RingMUD Java Mud Server and Engine
http://ringmud.thermetics.net/
GNU Lesser General Public License v3.0
21 stars 5 forks source link

NPCs should not have race in parentheses #18

Closed ProjectMoon closed 14 years ago

ProjectMoon commented 14 years ago

Races in parentheses are for players only. NPCs should have more unique short descriptions.

ProjectMoon commented 14 years ago

Fixed by adding @XmlSeeAlso annotation to class Mobile. This produces an xsi:type attribute on elements that tells JAXB if it is an NPC. By doing this, it is able to correctly instantiate an NPC object rather than a Mobile object.