|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object appletbots.WorldObjectData
public class WorldObjectData
This object contains the location and velocity values for an object in the world
Constructor Summary | |
---|---|
WorldObjectData(Point location,
Vector velocity,
WorldObject object)
Constructs a new WorldObjectData with the given location and velocity values for the given object |
Method Summary | |
---|---|
Point |
getLocation()
Returns the location of the object. |
WorldObject |
getObject()
Returns the object |
Vector |
getVelocity()
Returns the velocity of the object. |
void |
setLocation(Point location)
Sets the location of the object |
void |
setVelocity(Vector velocity)
Sets the velocity of the object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorldObjectData(Point location, Vector velocity, WorldObject object)
location
- The location of the objectvelocity
- The velocity of the objectobject
- The objectMethod Detail |
---|
public Point getLocation()
public void setLocation(Point location)
location
- Sets the location of the objectpublic Vector getVelocity()
public void setVelocity(Vector velocity)
velocity
- The velocity of the objectpublic WorldObject getObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |