public void updateSelfHealthyValue() { Human human = world.getSelfHuman(); if (repeatHealthyMessageCount == null && human.getBuriedness() == 0) { repeatHealthyMessageCount = 3; } else if (repeatHealthyMessageCount != null && human.getBuriedness() != 0) { repeatHealthyMessageCount = null; } }
public static Boolean isBuried(Human human) { return human.isBuriednessDefined() && human.getBuriedness() > 0; }
public Boolean isBuried(EntityID id) { Human human = world.getEntity(id, Human.class); return human.isBuriednessDefined() && human.getBuriedness() > 0; }