Class Turtle
java.lang.Object
SimpleTurtle
Turtle
Class that represents a turtle which is similar to a Logo turtle.
This class inherts from SimpleTurtle and is for students
to add methods to.
Copyright Georgia Institute of Technology 2004
-
Constructor Summary
ConstructorsConstructorDescriptionTurtle
(int x, int y, ModelDisplay modelDisplayer) Constructor that takes the x and y and a model display to draw it onConstructor that takes the x and y and a picture to draw onTurtle
(ModelDisplay modelDisplay) Constructor that takes the model displayConstructor that takes a picture to draw on -
Method Summary
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, turnLeft, turnRight, turnToFace, turnToFace, updateDisplay
-
Constructor Details
-
Turtle
Constructor that takes the x and y and a picture to draw on- Parameters:
x
- the starting x positiony
- the starting y positionpicture
- the picture to draw on
-
Turtle
Constructor that takes the x and y and a model display to draw it on- Parameters:
x
- the starting x positiony
- the starting y positionmodelDisplayer
- the thing that displays the model
-
Turtle
Constructor that takes the model display- Parameters:
modelDisplay
- the thing that displays the model
-
Turtle
Constructor that takes a picture to draw on- Parameters:
p
- the picture to draw on
-
-
Method Details
-
main
//////////////// methods ///////////////////////
-