Ticked class abstract

Repeatedly calls onTick on the node

Implemented types

Constructors

Ticked()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onTick(double time, double delta, int ticks) Future<Duration>
Called when the node is ticked. This is where you should update your node. The return value is how long to wait until the next tick. If you return a duration of 0, the node will be ticked as fast as possible. You are provided time which is the current time milliseconds delta which is the time since the last tick started in milliseconds and ticks which is the number of ticks that have passed. First tick is 0.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

$startTicking(Node node, NodeStorage storage, PrecisionStopwatch wallClock) Future<void>