|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lane.sente.Location
The purpose of this class is to hold information about the current location of any Element
Constructor Summary | |
Location(int x,
int y)
2D regular constructor |
|
Location(int x,
int y,
int z)
regular constructor |
|
Location(int minX,
int maxX,
int minY,
int maxY)
two D random location constructor |
|
Location(int minX,
int maxX,
int minY,
int maxY,
int minZ,
int maxZ)
constructor for a random location within a range of locations |
|
Location(Location loc)
copy constructor |
Method Summary | |
int |
getX()
the method to retieve the X value |
int |
getY()
the method to retieve the Y value |
int |
getZ()
the method to retieve the Z value |
Location |
nextLocation(Velocity v)
The method used to set the new location from a given velocity |
void |
setX(int i)
the method to set the X location |
void |
setY(int i)
the method to set the Y value |
void |
setZ(int i)
the method to set the Z value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Location(int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
minX
- The minimum possible X valuemaxX
- The maximum possible X valueminY
- The minimum possible Y valuemaxY
- The maximum possible Y valueminZ
- The minimum possible Z valuemaxZ
- The maximum possible Z valuepublic Location(int x, int y, int z)
x
- The x locationy
- The y locationz
- The z locationpublic Location(int minX, int maxX, int minY, int maxY)
minX
- The minimum possible X valuemaxX
- The maximum possible X valueminY
- The minimum possible Y valuemaxY
- The maximum possible Y valuepublic Location(int x, int y)
x
- The x locationy
- The y locationpublic Location(Location loc)
loc
- The location to be duplicatedMethod Detail |
public int getX()
public int getY()
public int getZ()
public void setX(int i)
i
- The new X valuepublic void setY(int i)
i
- The new Y valuepublic void setZ(int i)
i
- The new Z valuepublic Location nextLocation(Velocity v)
v
- The velocity from which to determine the new location
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |