Example #1
0
 /**
  * Location.
  *
  * @return the enemy location
  */
 public static Tile location() {
   return (npc != null) ? npc.getLocation() : null;
 }
Example #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;
 }
Example #3
0
 /**
  * Get enemy hp percent.
  *
  * @return hp percent
  */
 private static int hp() {
   return (npc != null) ? npc.getHpPercent() : 0;
 }