|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSimpleTurtle
Turtle
DrunkenTurtle
class DrunkenTurtle
A class that reprents a drunken turtle
| Constructor Summary | |
|---|---|
DrunkenTurtle(ModelDisplay modelDisplay)
Constructor that takes the model display |
|
| Method Summary | |
|---|---|
void |
forward(int pixels)
Method to have the turtle go forward drunkenly |
| Methods inherited from class SimpleTurtle |
|---|
backward, backward, clearPath, drawInfoString, drop, 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, turnLeft, turnRight, turnToFace, turnToFace, updateDisplay |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DrunkenTurtle(ModelDisplay modelDisplay)
modelDisplay - the thing that displays the model| Method Detail |
|---|
public void forward(int pixels)
forward in class SimpleTurtlepixels - the number of pixels to go forward
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||