Пример #1
0
 /**
  * Location.
  *
  * @return the enemy location
  */
 public static Tile location() {
   return (npc != null) ? npc.getLocation() : null;
 }
Пример #2
0
 /**
  * Do action.
  *
  * @param action the action
  * @return true, if successful
  */
 public static boolean interact(String action) {
   return (npc != null) ? npc.interact(action) : null;
 }
Пример #3
0
 /**
  * Get enemy hp percent.
  *
  * @return hp percent
  */
 private static int hp() {
   return (npc != null) ? npc.getHpPercent() : 0;
 }