bot
Class Heading
java.lang.Object
bot.Heading
- public class Heading
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NORTH
public static final int NORTH
- See Also:
- Constant Field Values
EAST
public static final int EAST
- See Also:
- Constant Field Values
SOUTH
public static final int SOUTH
- See Also:
- Constant Field Values
WEST
public static final int WEST
- See Also:
- Constant Field Values
Heading
public Heading()
flip
public static int flip(int heading)
randomDirection
public static int randomDirection()
randomTurn
public static int randomTurn(int heading)
dx
public static int dx(int heading)
dy
public static int dy(int heading)
nextPoint
public static Point nextPoint(Point p,
int heading)
- From given point, go dir in the given direction
nextPoint
public static Point nextPoint(Point p,
int heading,
int dist)
dist
public static double dist(Point s1,
Point s2)
dist
public static double dist(Square s1,
Square s2)
right
public static int right(int heading)
left
public static int left(int heading)