|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttest.dotychase.Doty
public class Doty
Doty is the main character of the game
Constructor Summary | |
---|---|
Doty(float x,
float y,
float z)
Constructor for objects of class Doty |
Method Summary | |
---|---|
float |
getRotateY()
|
float |
getScale()
|
float |
getSpeed()
|
float |
getX()
|
float |
getY()
|
float |
getZ()
|
boolean |
isStopped()
|
void |
jump()
|
void |
move()
A generic move method that can be called every frame |
void |
moveX(float delta)
Move doty in the x direction. |
void |
moveZ(float delta)
Move doty in the z direction |
void |
revert()
Reverts doty back to the previous position |
void |
rotateY(float delta)
|
void |
setExitFrom(java.lang.String dir)
This method is called when Doty exits from a room. |
void |
setRoomDim(float w,
float d)
Set the dimension of the room Doty is in |
void |
setSpeed(float s)
|
void |
setX(float x)
|
void |
setY(float y)
|
void |
setZ(float z)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Doty(float x, float y, float z)
Method Detail |
---|
public void setRoomDim(float w, float d)
public void setExitFrom(java.lang.String dir)
dir
- The direction in which Doty exited from.public void moveX(float delta)
public void moveZ(float delta)
public void move()
public void jump()
public void rotateY(float delta)
public void revert()
public float getX()
public float getY()
public float getZ()
public float getScale()
public void setX(float x)
public void setY(float y)
public void setZ(float z)
public void setSpeed(float s)
public float getSpeed()
public float getRotateY()
public boolean isStopped()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |