TimeLimit

class TimeLimit(duration: Ticks) : Condition

A condition that is met until the specified duration has passed.

Parameters

duration

the maximum duration to allow execution

Constructors

Link copied to clipboard
constructor(duration: Ticks)

Functions

Link copied to clipboard
open infix fun and(other: Condition): Condition

Returns a condition that is the logical AND of this condition and the other condition.

Link copied to clipboard
open override fun canRun(): Boolean

Checks if the current time is before the calculated end time.

Link copied to clipboard
open fun not(): Condition

Returns a condition that is the logical negation of this condition.

Link copied to clipboard
open infix fun or(other: Condition): Condition

Returns a condition that is the logical OR of this condition and the other condition.

Link copied to clipboard
open infix fun xor(other: Condition): Condition

Returns a condition that is the logical XOR of this condition and the other condition.