Class Turtle

java.lang.Object
  extended byTurtle

public class Turtle
extends java.lang.Object


Constructor Summary
Turtle()
          Creates a new instance of Turtle
Turtle(double x, double y, double alpha, double dist)
          Initiating a turtle object given the values of x-coordinate, y-coordinate, the direction angle and the drawing distance
 
Method Summary
 void decrAlpha(double delta)
           
 double getAlpha()
           
 double getD()
           
 double getX()
          Set of accessor methods Used to get turtle values
 double getY()
           
 void incrAlpha(double delta)
           
 void setAlpha(double alpha)
           
 void setD(double dist)
           
 void setX(double x)
          Set of mutator methods used to change turtle values
 void setY(double y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Turtle

public Turtle()
Creates a new instance of Turtle


Turtle

public Turtle(double x,
              double y,
              double alpha,
              double dist)
Initiating a turtle object given the values of x-coordinate, y-coordinate, the direction angle and the drawing distance

Method Detail

decrAlpha

public void decrAlpha(double delta)

getAlpha

public double getAlpha()

getD

public double getD()

getX

public double getX()
Set of accessor methods Used to get turtle values


getY

public double getY()

incrAlpha

public void incrAlpha(double delta)

setAlpha

public void setAlpha(double alpha)

setD

public void setD(double dist)

setX

public void setX(double x)
Set of mutator methods used to change turtle values

Parameters:
x - the x-coordinate of the turtle

setY

public void setY(double y)