test.android.worldofzuul
Class Doty

java.lang.Object
  extended by test.android.worldofzuul.Doty

public class Doty
extends java.lang.Object

Doty is the main character of the game


Constructor Summary
Doty(double x, double y, double z)
          Constructor for objects of class Doty
 
Method Summary
 double getScale()
           
 double getX()
           
 double getY()
           
 double getZ()
           
 void move(double dx, double dz)
           
 void moveX(double delta)
          Move doty in the x direction.
 void moveZ(double delta)
          Move doty in the z direction
 void revert()
          Reverts doty back to the previous position
 void setExitFrom(java.lang.String dir)
          This method is called when Doty exits from a room.
 void setRoomDim(double w, double d)
          Set the dimension of the room Doty is in
 void setX(double x)
           
 void setY(double y)
           
 void setZ(double z)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Doty

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

Method Detail

setRoomDim

public void setRoomDim(double w,
                       double 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(double delta)
Move doty in the x direction.


moveZ

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


move

public void move(double dx,
                 double dz)

revert

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


getX

public double getX()

getY

public double getY()

getZ

public double getZ()

getScale

public double getScale()

setX

public void setX(double x)

setY

public void setY(double y)

setZ

public void setZ(double z)