DurationMonitor class
Monitors whether the decorated node has returned the specified parameter Status since the DurationMonitor instance was updated.
The DurationMonitor will return Status.success
when the decorated
Node instance returns Status.success
and the specified millisecond
interval of time has elapsed.
If the DurationMonitor instance millisecond interval expires before the decorated Node instance returns the desired Status, the monitor timer is reset.
This is useful if you want to ensure that the child Node returns a
specific Status over time. The granularity of the checks if user decided
by calling the update()
method as often as desired:
- Call it every frame
- Call it within a desired millisecond time frame
Constructors
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
) → void - Resets the elapsed time of the DurationMonitor instance to 0.
-
reset(
) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
) → Status -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited