|
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.anim.AnimDancer
public abstract class AnimDancer
An AnimDancer
encapsulates all the information needed to
display and animate a single dancer. It is given a list of
TimedPosition
s, and uses these and a BeatTimer
to update the position and animation state of the scene graph Node
corresponding to the dancer.
Field Summary | |
---|---|
DanceFloor |
danceFloor
The DanceFloor containing position information for the dancers. |
StandardDancer |
dancer
The StandardDancer corresponding to this animated dancer. |
com.jme.scene.SwitchNode |
node
The scene graph Node corresponding to this animated dancer. |
Constructor Summary | |
---|---|
protected |
AnimDancer(DanceFloor danceFloor,
StandardDancer dancer)
|
Method Summary | |
---|---|
void |
update(Fraction time)
Update the node based on the current beat time. |
abstract void |
update(Fraction time,
float x,
float y,
float rot)
Subclasses should implement this to draw the dancer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final StandardDancer dancer
StandardDancer
corresponding to this animated dancer.
public final com.jme.scene.SwitchNode node
Node
corresponding to this animated dancer.
public final DanceFloor danceFloor
DanceFloor
containing position information for the dancers.
Constructor Detail |
---|
protected AnimDancer(DanceFloor danceFloor, StandardDancer dancer)
Method Detail |
---|
public abstract void update(Fraction time, float x, float y, float rot)
public void update(Fraction time)
|
sdr 0.7 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |