Class ConfusedTurtle

java.lang.Object
  extended bySimpleTurtle
      extended byTurtle
          extended byConfusedTurtle

public class ConfusedTurtle
extends Turtle


Constructor Summary
ConfusedTurtle(World theWorld)
          Constructor that takes a world and calls the parent constructor
 
Method Summary
 void turnLeft()
          Method to turn left (but confused turtles turn right)
 void turnRight()
          Method to turn right (but confused turtles turn left)
 
Methods inherited from class SimpleTurtle
backward, backward, clearPath, drawInfoString, drop, forward, forward, getBodyColor, getDistance, getHeading, getHeight, getInfoColor, getModelDisplay, getName, getPen, getPenColor, getPenWidth, getPicture, getShellColor, getShowInfo, getWidth, getXPos, getYPos, hide, isPenDown, isVisible, moveTo, paintComponent, penDown, penUp, setBodyColor, setColor, setHeading, setHeight, setInfoColor, setModelDisplay, setName, setPen, setPenColor, setPenDown, setPenWidth, setPicture, setShellColor, setShowInfo, setVisible, setWidth, show, toString, turn, turnToFace, turnToFace, updateDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfusedTurtle

public ConfusedTurtle(World theWorld)
Constructor that takes a world and calls the parent constructor

Parameters:
theWorld - the world to put the confused turtle in
Method Detail

turnLeft

public void turnLeft()
Method to turn left (but confused turtles turn right)

Overrides:
turnLeft in class SimpleTurtle

turnRight

public void turnRight()
Method to turn right (but confused turtles turn left)

Overrides:
turnRight in class SimpleTurtle