|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgame.Wiggle
public class Wiggle
Causes the Trackable location to wiggle from its starting Point.
| Constructor Summary | |
|---|---|
Wiggle(Point start,
int radius)
Specify a Wiggle |
|
| Method Summary | |
|---|---|
int |
advanceTime(int milliseconds)
Mark the advance of time. |
Point |
getLocation()
Where are we now? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Wiggle(Point start,
int radius)
start - Center of the wiggling and starting locationradius - The Trackable location will not move beyond the specified radius| Method Detail |
|---|
public int advanceTime(int milliseconds)
advanceTime in interface Trackablepublic Point getLocation()
getLocation in interface Trackable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||