[...]
Lifetime lifetime = LifetimeFactory.getCurrent();
[...]
lifetime = new LifetimeFactory.getInstance.getAnother();
lifetime.setParam(Lifetime.TOIL | Lifetime.BLOOD);
Collection virtues = Virtues.getInstance();
virtues.empty();
vistues.add(Virtues.BLACKNESS);
lifetime.setVirtues(virtues);
[...]
Road theRoad = RoadFactory.getInstance().getCurrent();
theRoad.fill(Road.MUD, 0, 100);
lifetime.setRoad(theRoad);
lifetime.remove(Lifetime.WILDERNESS);
Creature creature = new Creature() extends WomanCreature {
public Form getForm() {
return new Form() {
//TODO
};
}
};
lifetime.add(creature);
THELOGGER.info(creature);
Ese fragmento de código resulta en la siguiente traza:
467 [com.bobdylan.creatures.WomanCreature] INFO "Come in, I'll give you shelter from the storm."