Class Racer

java.lang.Object
  extended by edu.fcps.karel2.Item
      extended by edu.fcps.karel2.Robot
          extended by Athlete
              extended by Racer
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
BoxTopRacer, SteepleChaseRacer

public class Racer
extends Athlete
implements java.lang.Runnable


Field Summary
 
Fields inherited from class edu.fcps.karel2.Robot
beepers, direction
 
Fields inherited from class edu.fcps.karel2.Item
x, y
 
Constructor Summary
Racer(int y)
           
Racer(int x, int y, int dir, int beepers)
           
 
Method Summary
 void jumpLeft()
           
 void jumpRight()
           
 void pick(int n)
           
 void put(int n)
           
 void run()
           
 void shuttle(int spaces, int beepers)
           
 void sprint(int n)
           
 
Methods inherited from class Athlete
turnAround, turnRight
 
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

Racer

public Racer(int y)

Racer

public Racer(int x,
             int y,
             int dir,
             int beepers)
Method Detail

sprint

public void sprint(int n)

put

public void put(int n)

pick

public void pick(int n)

jumpRight

public void jumpRight()

jumpLeft

public void jumpLeft()

run

public void run()
Specified by:
run in interface java.lang.Runnable

shuttle

public void shuttle(int spaces,
                    int beepers)