public class Turtle extends SimpleTurtle
Constructor | Description |
---|---|
Turtle(int x,
int y,
ModelDisplay modelDisplayer) |
Constructor that takes the x and y and a model
display to draw it on
|
Turtle(int x,
int y,
Picture picture) |
Constructor that takes the x and y and a picture to
draw on
|
Turtle(ModelDisplay modelDisplay) |
Constructor that takes the model display
|
Turtle(Picture p) |
Constructor that takes a picture to draw on
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
backward, backward, clearPath, drawInfoString, drop, forward, forward, getBodyColor, getDistance, 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
public Turtle(int x, int y, Picture picture)
x
- the starting x positiony
- the starting y positionpicture
- the picture to draw onpublic Turtle(int x, int y, ModelDisplay modelDisplayer)
x
- the starting x positiony
- the starting y positionmodelDisplayer
- the thing that displays the modelpublic Turtle(ModelDisplay modelDisplay)
modelDisplay
- the thing that displays the modelpublic Turtle(Picture p)
p
- the picture to draw on