Class KarelWorld.Direction

java.lang.Object
  extended by KarelWorld.Direction
Enclosing class:
KarelWorld

public abstract static class KarelWorld.Direction
extends java.lang.Object

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

clearForward

public abstract boolean clearForward(int street,
                                     int avenue,
                                     greenfoot.World world)

next

public KarelWorld.Direction next()

nextAvenue

public int nextAvenue(int street,
                      int avenue)

nextStreet

public int nextStreet(int street,
                      int avenue)

rotation

public int rotation()