action.put("creature", "rat");
action.put("x", 0);
action.put("y", 0);
CommandCenter.execute(pl, action);
assertEquals(1, pl.getID().getObjectID());
final Creature rat = (Creature) zone.getEntityAt(0, 0);
assertEquals("rat", rat.get("subclass"));
action = new RPAction();
action.put("type", "altercreature");
action.put("target", "#2");
// must be of type "name;atk;def;hp;xp",
action.put("text", "newname;5;6;7;8");
CommandCenter.execute(pl, action);
assertEquals("name", "newname", rat.getName());
assertEquals("atk", 5, rat.getAtk());
assertEquals("def", 6, rat.getDef());
assertEquals("hp", 7, rat.getHP());
assertEquals("xp", 8, rat.getXP());
action.put("text", "-;-;-;100;100");
CommandCenter.execute(pl, action);
assertEquals("name", "newname", rat.getName());
assertEquals("atk", 5, rat.getAtk());
assertEquals("def", 6, rat.getDef());
assertEquals("hp", 100, rat.getHP());
assertEquals("xp", 100, rat.getXP());
}