sdr 0.7

net.cscott.sdr.anim
Class AnimDancer

java.lang.Object
  extended by net.cscott.sdr.anim.AnimDancer
Direct Known Subclasses:
CheckerDancer

public abstract class AnimDancer
extends Object

An AnimDancer encapsulates all the information needed to display and animate a single dancer. It is given a list of TimedPositions, and uses these and a BeatTimer to update the position and animation state of the scene graph Node corresponding to the dancer.

Version:
$Id: AnimDancer.java,v 1.2 2006-10-27 05:16:25 cananian Exp $
Author:
C. Scott Ananian

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

dancer

public final StandardDancer dancer
The StandardDancer corresponding to this animated dancer.


node

public final com.jme.scene.SwitchNode node
The scene graph Node corresponding to this animated dancer.


danceFloor

public final DanceFloor danceFloor
The DanceFloor containing position information for the dancers.

Constructor Detail

AnimDancer

protected AnimDancer(DanceFloor danceFloor,
                     StandardDancer dancer)
Method Detail

update

public abstract void update(Fraction time,
                            float x,
                            float y,
                            float rot)
Subclasses should implement this to draw the dancer.


update

public void update(Fraction time)
Update the node based on the current beat time. This method is called from the rendering thread.


sdr 0.7

Copyright © 2006-2009 C. Scott Ananian