|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--fate.world.WorldObject
|
+--fate.world.OrbitingBody
Base class for any orbiting object in the universe.
| Field Summary | |
int |
distance
Distance from the central object, no specific unit |
double |
position
Position along the circumference of orbit, in radians |
double |
velocity
Orbiting Speed: position delta in an update interval. |
| Fields inherited from class fate.world.WorldObject |
id,
name,
parent |
| Constructor Summary | |
OrbitingBody()
Creates new OrbitingBody |
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
Compare two OrbitingBody objects (for sorting) |
int |
x()
Calculate X coordinate |
int |
y()
Calculate Y coordinate |
| Methods inherited from class fate.world.WorldObject |
toString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public double position
public int distance
public double velocity
| Constructor Detail |
public OrbitingBody()
| Method Detail |
public int x()
public int y()
public int compareTo(java.lang.Object o)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||