Class Carpeter

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

public class Carpeter
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
Carpeter()
           
Carpeter(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

Carpeter

public Carpeter(int x,
                int y)

Carpeter

public Carpeter()
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