public class TimingNode extends ValueNode implements NodeCanFinish
Modifier and Type | Field and Description |
---|---|
static String |
END_INPUT |
static String |
INITIAL_INPUT |
DEFAULT_INPUT
Constructor and Description |
---|
TimingNode(int durationMs) |
Modifier and Type | Method and Description |
---|---|
float |
calculateValue(long frameTimeNanos)
This node should calculate and set a new value based on frame time and its parents (the nodes
it depends on).
|
boolean |
isFinished()
Called by framework code to determine whether a node is finished.
|
void |
onInputsFinished()
Called once the first time all of this nodes inputs have finished.
|
public static final String INITIAL_INPUT
public static final String END_INPUT
public float calculateValue(long frameTimeNanos)
ValueNode
calculateValue
in class ValueNode
public boolean isFinished()
NodeCanFinish
isFinished
in interface NodeCanFinish
public void onInputsFinished()
NodeCanFinish
onInputsFinished
in interface NodeCanFinish