Skip to content

Class: cond

Completion condition for a composed entity action.

Source

C++ class cond

Custom Constructor

cond

Remarks

Conditions choose which sub-action completions should finish the composed entity_action. Combine flags when the action should wait for several parts.

Extends

Constructors

Constructor

ts
new cond(): cond;

Create an empty completion condition.

Returns

cond

Overrides

EngineBinding.constructor

Constructor

ts
new cond(value: number): cond;

Create a completion condition from flags.

Parameters

ParameterTypeDescription
valuenumberCondition flags.

Returns

cond

Overrides

ts
EngineBinding.constructor

Constructor

ts
new cond(value1: number, value2: number): cond;

Create a completion condition from flags and a time limit.

Parameters

ParameterTypeDescription
value1numberCondition flags.
value2numberTime limit.

Returns

cond

Overrides

ts
EngineBinding.constructor

Properties

__name

ts
readonly __name: string;

LuaBind instance constructor name.

Inherited from

EngineBinding.__name


__name

ts
readonly static __name: string;

LuaBind class constructor name.

Inherited from

EngineBinding.__name


act_end

ts
readonly static act_end: 128;

Engine enum value for cond.act_end.


anim_end

ts
readonly static anim_end: 4;

Engine enum value for cond.anim_end.


look_end

ts
readonly static look_end: 2;

Engine enum value for cond.look_end.


move_end

ts
readonly static move_end: 1;

Engine enum value for cond.move_end.


object_end

ts
readonly static object_end: 32;

Engine enum value for cond.object_end.


sound_end

ts
readonly static sound_end: 8;

Engine enum value for cond.sound_end.


time_end

ts
readonly static time_end: 64;

Engine enum value for cond.time_end.