/** * Returns true if the recorded tracking direction indicates that bugging from here to the goal is * impossible. Specifically, if you are bugging past the same location with the opposite direction * and orientation, it returns true. * * @param here * @param dir * @param CW * @return */ public boolean checkTrackingDirection(MapLocation here, Direction dir, boolean CW) { int directionNum = dir.opposite().ordinal(); if (directionNum >= 8) { return false; } if (CW) { directionNum += 8; } if (directionsHash == null) { Logger.debug_printAntony("seriously what the f**k..."); } return directionsHash[here.x % HASH_WIDTH][here.y % HASH_HEIGHT][directionNum]; }