java.lang.ObjectKarelWorld.Direction
public abstract static class KarelWorld.Direction
Directions in the Karel world. The four directions are EAST, NORTH, WEST, and SOUTH. No other directions are possible. The methods of this class are used internally and not intended to be used otherwise.
| Method Summary | |
|---|---|
abstract boolean |
clearForward(int street,
int avenue,
greenfoot.World world)
|
KarelWorld.Direction |
next()
|
int |
nextAvenue(int street,
int avenue)
|
int |
nextStreet(int street,
int avenue)
|
int |
rotation()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public abstract boolean clearForward(int street,
int avenue,
greenfoot.World world)
public KarelWorld.Direction next()
public int nextAvenue(int street,
int avenue)
public int nextStreet(int street,
int avenue)
public int rotation()