Exemplo n.º 1
0
 public static void goToLocationDontDefuseOrAvoidMines(MapLocation location)
     throws GameActionException {
   Direction dir = rc.getLocation().directionTo(location);
   if (dir != Direction.OMNI) {
     goDirectionAvoidMines(dir);
   }
 }
Exemplo n.º 2
0
 public static void goAwayFromLocationAvoidMines(MapLocation location) throws GameActionException {
   Direction dir = rc.getLocation().directionTo(location).opposite();
   if (dir != Direction.OMNI) {
     goDirectionAvoidMines(dir);
   }
 }