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