Class DrunkenTurtle

java.lang.Object
  extended bySimpleTurtle
      extended byTurtle
          extended byDrunkenTurtle

class DrunkenTurtle
extends Turtle


Constructor Summary
DrunkenTurtle(ModelDisplay modelDisplay)
          Constructor that takes the model display
 
Method Summary
 void forward(int pixels)
          Method to move the turtle forward the given number of pixels
 
Methods inherited from class Turtle
square
 
Methods inherited from class SimpleTurtle
backward, drawInfoString, drop, forward, getBodyColor, getDistance, getHeading, getInfoColor, getModelDisplay, getName, getPen, getPenColor, getPenWidth, getPicture, getShellColor, getShowInfo, getXPos, getYPos, hide, isPenDown, isVisible, moveTo, paintComponent, penDown, penUp, setBodyColor, setColor, setHeading, setInfoColor, setModelDisplay, setName, setPen, setPenColor, setPenDown, setPenWidth, setPicture, setShellColor, setShowInfo, setVisible, show, toString, turn, turnLeft, turnRight, turnToFace, turnToFace, updateDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DrunkenTurtle

public DrunkenTurtle(ModelDisplay modelDisplay)
Constructor that takes the model display

Parameters:
modelDisplay - the thing that displays the model
Method Detail

forward

public void forward(int pixels)
Description copied from class: SimpleTurtle
Method to move the turtle forward the given number of pixels

Overrides:
forward in class SimpleTurtle
Parameters:
pixels - the number of pixels to walk forward in the heading direction