test.dotychase
Class Doty

java.lang.Object
  extended by test.dotychase.Doty

public class Doty
extends java.lang.Object

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

Doty

public Doty(float x,
            float y,
            float z)
Constructor for objects of class Doty

Method Detail

setRoomDim

public void setRoomDim(float w,
                       float d)
Set the dimension of the room Doty is in


setExitFrom

public void setExitFrom(java.lang.String dir)
This method is called when Doty exits from a room. If Doty exits from the east, then set Doty's position to the west side of the new room.

Parameters:
dir - The direction in which Doty exited from.

moveX

public void moveX(float delta)
Move doty in the x direction.


moveZ

public void moveZ(float delta)
Move doty in the z direction


move

public void move()
A generic move method that can be called every frame


jump

public void jump()

rotateY

public void rotateY(float delta)

revert

public void revert()
Reverts doty back to the previous position


getX

public float getX()

getY

public float getY()

getZ

public float getZ()

getScale

public float getScale()

setX

public void setX(float x)

setY

public void setY(float y)

setZ

public void setZ(float z)

setSpeed

public void setSpeed(float s)

getSpeed

public float getSpeed()

getRotateY

public float getRotateY()

isStopped

public boolean isStopped()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object