|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SimpleTurtle Turtle
public class 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 | |
---|---|
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 |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |