Murl Engine Lua Addon API  Version 1.0 beta
Murl.Logic.IStepableObserver

The IStepableObserver interface.

The stepable observer notifies objects implementing the IStepable interface.
The IProcessor object provides a ready to use stepable observer.


Table members

Methods


Add(stepable)

Add a stepable object to the observer. Adding a stepable twice is not allowed.

Boolean Add(Murl.SharedPointer.LogicIStepable stepable)

Parameters
stepableThe stepable object to add.
Returns
Boolean true if successful.

Remove(stepable)

Remove a stepable object from the observer.

Boolean Remove(Murl.SharedPointer.LogicIStepable stepable)

Parameters
stepableThe stepable object to remove.
Returns
Boolean true if successful.

RemoveAt(index)

Remove a stepable object by index from the observer. A valid index is [0 .. GetNumberOfStepables() - 1].

Boolean RemoveAt(Integer index)

Parameters
indexThe zero-based index of the stepable object to remove.
Returns
Boolean true if successful.

RemoveAll()

Remove all stepable objects from the observer.

RemoveAll()


GetNumberOfStepables()

Get the number of stepable objects in the observer.

Integer GetNumberOfStepables()

Returns
Integer The number of stepable objects.

GetStepable(index)

Get a stepable object by index. A valid index is [0 .. GetNumberOfStepables() - 1].

Murl.SharedPointer.LogicIStepable GetStepable(Integer index)

Parameters
indexThe zero-based index of the stepable object.
Returns
Murl.SharedPointer.LogicIStepable The stepable object or 0 if index is out of range.

SetEnabled(isEnabled)

Notify IStepable::SetEnabled() to all observed objects.

SetEnabled(Boolean isEnabled)

Parameters
isEnabledtrue for enable, false for disable.

Reset()

Notify IStepable::Reset() to all observed objects.

Reset()


ProcessTick(state)

Notify IStepable::ProcessTick() to all observed objects.

ProcessTick(Murl.Logic.IState state)

Parameters
stateThe IState object.

FinishTick(state)

Notify IStepable::FinishTick() to all observed objects.

FinishTick(Murl.Logic.IState state)

Parameters
stateThe IState object.