示例#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;
 }