String type = attrs.getValue("type");
Vector3f center = (attrs.getValue("center") != null) ? parseVector(attrs.getValue("center")) : new Vector3f(0.0f, 0.0f, 0.0f);
float respawn = attrs.getValue("respawn") != null ? Float.parseFloat(attrs.getValue("respawn")) : 10.0f;
if (type.equalsIgnoreCase("grenade")) {
GrenadeGoody g = new GrenadeGoody(world, center, respawn);
world.addWorldObject(g);
}
}
}