|
sdr 0.7 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.cscott.sdr.DanceFloor
public class DanceFloor
The DanceFloor
path contains the current computed locations for
all dancers; it is synchronized so that it can be asynchronously queried
and updated from various threads.
Constructor Summary | |
---|---|
DanceFloor()
|
Method Summary | |
---|---|
void |
addPath(Dancer d,
DancerBezierPath dbp)
Add a path for the given dancer. |
void |
clearPaths(Dancer d)
Remove the given dancer from the floor. |
DancerBezierPath |
location(Dancer d,
Fraction beatTime)
Current (interpolated) path for the given dancer. |
void |
notifyBeat(Fraction beat)
Notify the choreography engine that the given beat is now occurring. |
Fraction |
waitForBeat(Fraction beat)
Block waiting until notifyBeat() is called with a beat greater than or equal to that specified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DanceFloor()
Method Detail |
---|
public DancerBezierPath location(Dancer d, Fraction beatTime)
null
if the dancer is not currently on the floor.
public void addPath(Dancer d, DancerBezierPath dbp)
public void clearPaths(Dancer d)
public void notifyBeat(Fraction beat)
public Fraction waitForBeat(Fraction beat)
|
sdr 0.7 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |