|
Ball World Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The World interface describes information that a Ball can get about the World
Method Summary | |
void |
addBall(Ball aNewBall)
Add a ball to the world |
Ball |
getClosestBall(Ball myBall)
returns the Ball object that is closest to myBall (not including myBall). |
double |
getMaxX()
return the maximum visible X value of the world |
double |
getMaxY()
return the maximum visible Y value of the world |
double |
getMinX()
Get minimum visible X value of the world. |
double |
getMinY()
return the minimum visible Y value of the world |
void |
removeBall(Ball toBeRemoved)
Remove a ball from the world |
Method Detail |
public double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
public Ball getClosestBall(Ball myBall)
myBall
- The ball to find neighbors for
null
otherwisepublic void addBall(Ball aNewBall)
aNewBall
- The ball to addpublic void removeBall(Ball toBeRemoved)
toBeRemoved
- The ball to remove
|
Ball World Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |