|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectTurtle
| 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 |
public Turtle()
public Turtle(double x,
double y,
double alpha,
double dist)
| Method Detail |
public void decrAlpha(double delta)
public double getAlpha()
public double getD()
public double getX()
public double getY()
public void incrAlpha(double delta)
public void setAlpha(double alpha)
public void setD(double dist)
public void setX(double x)
x - the x-coordinate of the turtlepublic void setY(double y)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||