|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lane.sente.Velocity
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 |
public Velocity()
public Velocity(int x, int y, int z)
x
- The speed along the x axisy
- The speed along the y axisz
- The speed along the z axisMethod Detail |
public void setSpeedx(int x)
x
- the new x axis speedpublic void setSpeedy(int y)
y
- the new y axis speedpublic void setSpeedz(int z)
z
- the new z axis speedpublic int getSpeedx()
public int getSpeedy()
public int getSpeedz()
public int getSpeed()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |