lane.sente
Class Velocity

java.lang.Object
  |
  +--lane.sente.Velocity

public class Velocity
extends java.lang.Object

The purpose of this class is to hold information about the speed of an object. It is also designed to set the location of an Object.


Constructor Summary
Velocity()
          default constructor with no movement
Velocity(int x, int y, int z)
          movement constructor
 
Method Summary
 int getSpeed()
          returns the "straight line" speed of the object note: Untested! just written durring "comment frenzy"
 int getSpeedx()
          returns the speed along the x axis
 int getSpeedy()
          returns the speed along the y axis
 int getSpeedz()
          returns the speed along the z axis
 void setSpeedx(int x)
          used to set the speed along the x axis
 void setSpeedy(int y)
          used to set the speed along the y axis
 void setSpeedz(int z)
          used to set the speed along the z axis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Velocity

public Velocity()
default constructor with no movement

Velocity

public Velocity(int x,
                int y,
                int z)
movement constructor
Parameters:
x - The speed along the x axis
y - The speed along the y axis
z - The speed along the z axis
Method Detail

setSpeedx

public void setSpeedx(int x)
used to set the speed along the x axis
Parameters:
x - the new x axis speed

setSpeedy

public void setSpeedy(int y)
used to set the speed along the y axis
Parameters:
y - the new y axis speed

setSpeedz

public void setSpeedz(int z)
used to set the speed along the z axis
Parameters:
z - the new z axis speed

getSpeedx

public int getSpeedx()
returns the speed along the x axis
Returns:
The speed along the x axis

getSpeedy

public int getSpeedy()
returns the speed along the y axis
Returns:
The speed along the y axis

getSpeedz

public int getSpeedz()
returns the speed along the z axis
Returns:
The speed along the z axis

getSpeed

public int getSpeed()
returns the "straight line" speed of the object note: Untested! just written durring "comment frenzy"
Returns:
an int speed