leaves.setSourceMessage("Thanks for visiting!!");
((Observable) player).fireEvent(leaves);
}
protected synchronized void doMovementEvent(IScopedEvent arg) {
MovementEvent event = (MovementEvent) arg;
Alive movingObject = event.getMovingObject();
Container foundRoom = (Container) getMudObject(event.getRoomLocation().getBeanId());
if (foundRoom == null) {
Exception anException = null;
try {
foundRoom = (Container) getMudObjectAttendant().load(event.getRoomLocation());
} catch (CompilationFailedException e) {
logger.error(e, e);
anException = e;
} finally {
if (anException != null) {
try {
movingObject.getTerminalOutput().writeln(anException.getMessage());
} catch (IOException e) {
logger.error(e, e);
}
}
}
}
event.setFoundRoom(foundRoom);
// pass the event back to the room, with an altered scope
event.setScope(EventScope.CONTAINER_SCOPE);
((Observable) event.getSourceExit()).doEvent(event);
}