A D E G I M R S T U W

A

add(Turtle) - Method in class World
Package local method which adds a turtle to this world.

D

disablePath() - Method in class Turtle
Disables drawing of the path when the turtle moves.
disableUpdateOnChange() - Method in class World
Disables update on change.
distanceTo(int, int) - Method in class Turtle
Calculates the Euclidean distance between a turtle and a given other point.
drawPath(Turtle, int, int, int, int) - Method in class World
Package local method which draws a line from an old position to the new for a given turtle.

E

enablePath() - Method in class Turtle
Enables drawing of the path when the turtle moves.
enableUpdateOnChange() - Method in class World
Enables update on change.

G

getColor() - Method in class Turtle
Returns the main Color of the turtle (used to draw its body).
getDirection() - Method in class Turtle
Returns the direction of the turtle in degrees.
getHeight() - Method in class World
Returns the height of the world in pixels.
getLimbColor() - Method in class Turtle
Returns the Color of the turtle's limbs (head and legs).
getRadius() - Method in class Turtle
Returns the radius corresponding to the current scaling factor of the turtle.
getSize() - Method in class Turtle
Returns the scaling factor for the turtle where 1.0 is the default size and 2.0 is double the default size and 0.5 is half the default size.
getUpdateOnChange() - Method in class World
Returns the current update on change flag.
getWidth() - Method in class World
Returns the width of the world in pixels.
getWorld() - Method in class Turtle
Returns the World associated with this turtle.
getXPos() - Method in class Turtle
Returns the x-coordinate of the turtle.
getYPos() - Method in class Turtle
Returns the y-coordinate of the turtle.

I

isPathEnabled() - Method in class Turtle
Returns true if path drawing is enabled and false if it's disabled.
isVisible() - Method in class Turtle
Returns true if the turtle is visible and false if it's invisible.

M

main(String[]) - Static method in class SampleProgram
 
move(int) - Method in class Turtle
Moves the turtle along its current direction by an integer step-size.
moveTo(int, int) - Method in class Turtle
Repositions the turtle to the given x- and y-coordinates.

R

RADIUS - Static variable in class Turtle
 
remove(Turtle) - Method in class World
Removes a turtle from the world.

S

SampleProgram - Class in <Unnamed>
Copyright (c) 2015, Johan Öfverstedt Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
SampleProgram() - Constructor for class SampleProgram
 
setColor(int, int, int) - Method in class Turtle
Sets the color of the turtle to the specified RGB color.
setRadius(double) - Method in class Turtle
Set the scaling factor corresponding to the specified radius.
setSize(double) - Method in class Turtle
Sets the scaling factor for the turtle where 1.0 is the default size and 2.0 is double the default size and 0.5 is half the default size.
setVisible(boolean) - Method in class Turtle
Sets the visibility status of the turtle.

T

toString() - Method in class Turtle
Generates a compact string representation of some of the turtle's attributes.
toString() - Method in class World
Generates a string representation of the world and all the turtles in it.
turn(int) - Method in class Turtle
Turns the turtle clockwise by the given integer number of degrees.
turnTo(int, int) - Method in class Turtle
Turns the turtle to face the point specified by the x- and y-coordinate.
Turtle - Class in <Unnamed>
Turtle is a class representing a fun-loving reptile residing in a World.
Turtle(World) - Constructor for class Turtle
Constructs a turtle and places it at the center of the world.
Turtle(World, int, int) - Constructor for class Turtle
Constructs a turtle and places it at the specified position in the world.
turtleUpdate() - Method in class World
Signals that a Turtle has been updated.

U

update() - Method in class World
Forces a repaint of the world.

W

World - Class in <Unnamed>
World is a class representing an environment for Turtles.
World() - Constructor for class World
Constructs a world with default size of 400 by 400 pixels.
World(int, int) - Constructor for class World
Constructs a world with a specified width and height.

A D E G I M R S T U W