In this question the first answer explains a way of defining components of a gaming engine in xml like this:
<?xml version="1.0" encoding="UTF-8"?>
<mobs>
<mob>
<personality>Aggressive</personality>
<intelligence>20</intelligence>
</mob>
</mobs>
and then states in java your mob class would look like:
public class Mob {
private IPersonality personality;
private Integer intelligence
//** Getters & Setters **//
}
what exactly is the xml doing here?
I'm not really familiar with xml at all so if it appears like i dont know what im talking about then just point out of edit my stupidity out.