Class Harvester

java.lang.Object
  extended by edu.fcps.karel2.Item
      extended by edu.fcps.karel2.Robot
          extended by Harvester
All Implemented Interfaces:
Workable

public class Harvester
extends Robot
implements Workable


Field Summary
 
Fields inherited from class edu.fcps.karel2.Robot
beepers, direction
 
Fields inherited from class edu.fcps.karel2.Item
x, y
 
Constructor Summary
Harvester()
           
Harvester(int x, int y)
           
 
Method Summary
 void moveOneBlock()
           
 void turnToTheNorth()
           
 void turnToTheRight()
           
 void workCorner()
           
 
Methods inherited from class edu.fcps.karel2.Robot
explode, facingEast, facingNorth, facingSouth, facingWest, frontIsClear, getBeepers, getDirection, hasBeepers, leftIsClear, move, nextToABeeper, nextToARobot, pickBeeper, putBeeper, render, rightIsClear, turnLeft
 
Methods inherited from class edu.fcps.karel2.Item
getX, getY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Harvester

public Harvester(int x,
                 int y)

Harvester

public Harvester()
Method Detail

workCorner

public void workCorner()
Specified by:
workCorner in interface Workable

moveOneBlock

public void moveOneBlock()
Specified by:
moveOneBlock in interface Workable

turnToTheRight

public void turnToTheRight()
Specified by:
turnToTheRight in interface Workable

turnToTheNorth

public void turnToTheNorth()
Specified by:
turnToTheNorth in interface Workable