InvokeState

Inherits: Reference < Object

The function invocation state.

Description

This class is used by GoostEngine.invoke to manage pending invocations.

Properties

String method ""
Object target  
float time_left 0.0

Methods

void cancel ( )
bool is_active ( )
bool is_repeating ( )

Signals

  • completed ( )

Emitted when the method is successfully called without errors. This signal is not emitted if the invocation is configured as repeating, see is_repeating.


  • post_call ( )

Emitted after the method is called.


  • pre_call ( )

Emitted when the method is about to be called.

Property Descriptions

Default ""
Getter get_target_method()

The method name which is going to be invoked in the target object (read-only).


Getter get_target()

The target Object where the method is going to be invoked (read-only).


Default 0.0
Getter get_time_left()

The total time left before the target method is called (read-only).

Method Descriptions

  • void cancel ( )

Cancels the invocation, preventing the target method from being called.


  • bool is_active ( )

Tells whether this state is currently processed. If the state is cancelled with cancel, then this will return false.


  • bool is_repeating ( )

Tells whether the method invocation is repeated every repeat_rate seconds as requested by GoostEngine.invoke.