return;
}
if (input.getClass().equals(LeaveNotification.class))
{
final LeaveNotification in = (LeaveNotification)input;
dm.removeMember(in.getAgent());
this.onMemberLeave(in.getAgent(), in.getReason());
//Bug fix
ec.act(new RespondToApplication(in.getAgent(), false), this.getId(),
authCode);
//Bug fix end
logger.log(Level.FINE, "{0} lost memeber {1} because of {2}", new Object[]
{
dm.getName(),
ec.nameof(in.getAgent()), in.getReason()
});
if (dm.getMemberList().isEmpty())
{
ec.act(new Death(), dm.getId(), authCode);
}
return;
}
if (input.getClass().equals(HuntResult.class))
{
final HuntResult in = (HuntResult)input;
huntResult.put(in.getAgent(), in.getFoodHunted());
logger.log(Level.FINE, "Agent {0} has hunted food worth {1} for {2}",
new Object[]
{
ec.nameof(in.getAgent()),
in.getFoodHunted(), dm.getName()
});
return;
}
if (input.getClass().equals(Vote.class))