* @return the leader flag.
*/
public boolean isLeader(SituatedObject o) {
if (o instanceof AgentBody) {
AgentBody body = (AgentBody)o;
AgentAddress adr = body.getOwner();
if (adr!=null) {
String s = LocalizedString.get(Rabbit.class, "LEADER"); //$NON-NLS-1$
return s!=null && s.equals(adr.getName());
}
}
return false;
}