A C D E F G M S T W 
All Classes All Packages

A

advance() - Method in class TurtleMob
Moves both turtles forward one "step".

C

Canvas - Class in <Unnamed>
Canvas is a class to allow for simple graphical drawing on a canvas.
changeColor(String) - Method in class Circle
Change the color.
changeSize(int) - Method in class Circle
Change the size to the new size (in pixels).
Circle - Class in <Unnamed>
A circle that can be manipulated and that draws itself on a canvas.
Circle() - Constructor for class Circle
Create a new circle at default position with default color.
Circle(Circle) - Constructor for class Circle
This is a copy constructor.
comet - Variable in class TurtleMob
 
cupid - Variable in class TurtleMob
 

D

draw(Object, String, Shape) - Method in class Canvas
Draw a given shape onto the canvas.

E

equals(Turtle) - Method in class Turtle
Compares our state with that of another turtle.
equals(TurtleMob) - Method in class TurtleMob
Compares "us" to another TurtleMob.
erase(Object) - Method in class Canvas
Erase a given shape's from the screen.

F

faceEast() - Method in class Turtle
Change the turtle's state so that we're heading east.
faceNorth() - Method in class Turtle
Change the turtle's state such that we'll head "north" (up the screen) the next time forward() is called.
faceSouth() - Method in class Turtle
Change the turtle's state so that we're heading south.
faceWest() - Method in class Turtle
Change the turtle's state so that we're heading west.
forward() - Method in class Turtle
Move in the direction we're heading, by the number of pixels stored in the distance field.

G

getCanvas() - Static method in class Canvas
Factory method to get the canvas singleton object.
getCircle() - Method in class Turtle
A "getter" method that returns a reference to our Circle object.
getXDirection() - Method in class Turtle
A "getter" method for providing the turtle's xDirection.
getXPosition() - Method in class Circle
A "getter" method that returns the circle's xPosition.
getYDirection() - Method in class Turtle
A "getter" method for providing the turtle's yDirection.
getYPosition() - Method in class Circle
A "getter" method that returns the circle's xPosition.

M

makeInvisible() - Method in class Circle
Make this circle invisible.
makeVisible() - Method in class Circle
Make this circle visible.
moveDown() - Method in class Circle
Move the circle a few pixels down.
moveHorizontal(int) - Method in class Circle
Move the circle horizontally by 'distance' pixels.
moveLeft() - Method in class Circle
Move the circle a few pixels to the left.
moveRight() - Method in class Circle
Move the circle a few pixels to the right.
moveUp() - Method in class Circle
Move the circle a few pixels up.
moveVertical(int) - Method in class Circle
Move the circle vertically by 'distance' pixels.

S

sameSpot() - Method in class TurtleMob
Compares our two turtles to see if they're at the same position on the screen.
setDistance(int) - Method in class Turtle
The setDistance method can be used to change how far the turtle moves each time forward() is called.
setForegroundColor(String) - Method in class Canvas
Set the foreground color of the Canvas.
setVisible(boolean) - Method in class Canvas
Set the canvas visibility and brings canvas to the front of screen when made visible.
slowMoveHorizontal(int) - Method in class Circle
Slowly move the circle horizontally by 'distance' pixels.
slowMoveVertical(int) - Method in class Circle
Slowly move the circle vertically by 'distance' pixels.
splitUp() - Method in class TurtleMob
Causes the two Turtles to move apart horizontally, then leaves them both facing south.

T

Turtle - Class in <Unnamed>
This class represents a "turtle" that can be asked to change directions and move around the screen.
Turtle() - Constructor for class Turtle
This constructor sets up our "turtle" and leaves it facing north.
Turtle(int) - Constructor for class Turtle
The second constructor allows the user to specify how far our turtle should move each time forward() is called: It takes a parameter containing this extra information, and uses an assignment statement to store a copy of that value in our distance field.
Turtle(Turtle) - Constructor for class Turtle
This copy constructor takes another Turtle object for inspiration, and sets "us" up to look just like them.
TurtleMob - Class in <Unnamed>
Ok, fine, "mob" is a bit of an overstatement.
TurtleMob() - Constructor for class TurtleMob
Default constructor for objects of class TurtleMob.
TurtleMob(TurtleMob) - Constructor for class TurtleMob
This copy constructor sets up our "mob" to look exactly like the TurtleMob instance passed in as an input.

W

wait(int) - Method in class Canvas
Wait for a specified number of milliseconds before finishing.
A C D E F G M S T W 
All Classes All Packages