Public Member Functions | |
VisBit (Node dummy, Vector3f pos) | |
Package Functions | |
Vector3f | randomVector3f () |
void | state (int newState) |
Override void | renderSelf () |
Package Attributes | |
VisNode[] | shape = new VisNode[] {new BitIdle(), new BitOff(), new BitOn()} |
Sound[] | sound = new Sound[]{null, new Sound("sound/nein.wav"),new Sound("sound/ja.wav")} |
int | state |
final int | IDLE = 0 |
final int | NO = 1 |
final int | YES = 2 |
float | time |
float | cycle = 20 |
Vector3f | velocity = new Vector3f(1,0,0) |
Classes | |
class | BitIdle |
class | BitOff |
class | BitOn |
Definition at line 13 of file VisBit.java.
org.hfbk.vis.visnode.VisBit.VisBit | ( | Node | dummy, | |
Vector3f | pos | |||
) |
Definition at line 106 of file VisBit.java.
References org.hfbk.vis.visnode.VisNode.add(), org.hfbk.vis.visnode.VisBit.IDLE, org.hfbk.vis.visnode.VisBit.shape, and org.hfbk.vis.visnode.VisBit.sound.
Here is the call graph for this function:
Vector3f org.hfbk.vis.visnode.VisBit.randomVector3f | ( | ) | [package] |
Definition at line 113 of file VisBit.java.
Referenced by org.hfbk.vis.visnode.VisBit.renderSelf().
Here is the caller graph for this function:
void org.hfbk.vis.visnode.VisBit.state | ( | int | newState | ) | [package] |
Definition at line 117 of file VisBit.java.
References org.hfbk.vis.visnode.VisNode.add(), org.hfbk.vis.visnode.VisNode.remove(), org.hfbk.vis.visnode.VisBit.shape, org.hfbk.vis.visnode.VisBit.sound, org.hfbk.vis.visnode.VisBit.state, and org.hfbk.vis.visnode.Sound.trigger().
Here is the call graph for this function:
Override void org.hfbk.vis.visnode.VisBit.renderSelf | ( | ) | [package, virtual] |
implement this to actually render this node itself. also used to update a node's state.
things not seen also do not update. this is sometimes akward, sometimes useful, eg. a movie not seen does not advance
Implements org.hfbk.vis.visnode.VisNode.
Definition at line 127 of file VisBit.java.
References org.hfbk.vis.visnode.VisRoot.client, org.hfbk.vis.visnode.VisBit.cycle, org.hfbk.vis.VisClient.dt, org.hfbk.vis.visnode.VisNode.getRoot(), org.hfbk.vis.visnode.VisBit.IDLE, org.hfbk.vis.visnode.VisBit.NO, org.hfbk.vis.visnode.VisNode.position, org.hfbk.vis.visnode.VisBit.randomVector3f(), org.hfbk.vis.visnode.VisBit.state, org.hfbk.vis.visnode.VisBit.time, org.hfbk.vis.visnode.VisNode.traverse(), org.hfbk.vis.visnode.VisBit.velocity, and org.hfbk.vis.visnode.VisBit.YES.
Here is the call graph for this function:
VisNode [] org.hfbk.vis.visnode.VisBit.shape = new VisNode[] {new BitIdle(), new BitOff(), new BitOn()} [package] |
Definition at line 97 of file VisBit.java.
Referenced by org.hfbk.vis.visnode.VisBit.state(), and org.hfbk.vis.visnode.VisBit.VisBit().
Sound [] org.hfbk.vis.visnode.VisBit.sound = new Sound[]{null, new Sound("sound/nein.wav"),new Sound("sound/ja.wav")} [package] |
Definition at line 98 of file VisBit.java.
Referenced by org.hfbk.vis.visnode.VisBit.state(), and org.hfbk.vis.visnode.VisBit.VisBit().
int org.hfbk.vis.visnode.VisBit.state [package] |
Definition at line 100 of file VisBit.java.
Referenced by org.hfbk.vis.visnode.VisBit.renderSelf(), and org.hfbk.vis.visnode.VisBit.state().
final int org.hfbk.vis.visnode.VisBit.IDLE = 0 [package] |
Definition at line 101 of file VisBit.java.
Referenced by org.hfbk.vis.visnode.VisBit.renderSelf(), and org.hfbk.vis.visnode.VisBit.VisBit().
final int org.hfbk.vis.visnode.VisBit.NO = 1 [package] |
final int org.hfbk.vis.visnode.VisBit.YES = 2 [package] |
float org.hfbk.vis.visnode.VisBit.time [package] |
float org.hfbk.vis.visnode.VisBit.cycle = 20 [package] |
Vector3f org.hfbk.vis.visnode.VisBit.velocity = new Vector3f(1,0,0) [package] |