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