public interface KarelInterface
Modifier and Type | Method and Description |
---|---|
boolean |
beepersInBag() |
boolean |
beepersPresent() |
boolean |
facingEast() |
boolean |
facingNorth() |
boolean |
facingSouth() |
boolean |
facingWest() |
boolean |
frontIsBlocked() |
boolean |
frontIsClear() |
int |
getBeepersInBag() |
int |
getDirection() |
Point |
getLocation() |
KarelWorld |
getWorld() |
boolean |
leftIsBlocked() |
boolean |
leftIsClear() |
void |
move() |
boolean |
noBeepersInBag() |
boolean |
noBeepersPresent() |
boolean |
notFacingEast() |
boolean |
notFacingNorth() |
boolean |
notFacingSouth() |
boolean |
notFacingWest() |
void |
pause(double ms) |
void |
pickBeeper() |
void |
putBeeper() |
boolean |
rightIsBlocked() |
boolean |
rightIsClear() |
void |
run() |
void |
setBeepersInBag(int beepers) |
void |
setDirection(int dir) |
void |
setLocation(int x,
int y) |
void |
setLocation(Point pt) |
void |
setWorld(KarelWorld world) |
void |
turnLeft() |
int getDirection()
int getBeepersInBag()
KarelWorld getWorld()
Point getLocation()
void pause(double ms)
void setBeepersInBag(int beepers)
void setDirection(int dir)
void setLocation(int x, int y)
void setLocation(Point pt)
void setWorld(KarelWorld world)
void run()
void move()
void turnLeft()
void pickBeeper()
void putBeeper()
boolean frontIsClear()
boolean frontIsBlocked()
boolean leftIsClear()
boolean leftIsBlocked()
boolean rightIsClear()
boolean rightIsBlocked()
boolean beepersPresent()
boolean noBeepersPresent()
boolean beepersInBag()
boolean noBeepersInBag()
boolean facingNorth()
boolean facingEast()
boolean facingSouth()
boolean facingWest()
boolean notFacingNorth()
boolean notFacingEast()
boolean notFacingSouth()
boolean notFacingWest()