tuxemon.event.actions.wait module

final class tuxemon.event.actions.wait.WaitAction(seconds)[source]

Bases: EventAction

Block event chain for some time.

Script usage

wait <seconds>
Script parameters:

seconds – Time in seconds for the event engine to wait for.

Parameters:

seconds (float) –

name: ClassVar[str] = 'wait'
seconds: float
start()[source]

Called only once, when the action is started.

For all actions, you will need to override this method.

For actions that only need to run one frame you can simply put all the code here. If the action will need to run over several frames, you can init your action here, then override the update method.

Return type:

None

update()[source]

Called once per frame while action is running.

It is also called on the first frame when EventAction is started.

If you do not override this, then the action will stop after it is started, and live for only one frame.

If you do override this, then this method will be run every frame until EventAction.stop() is called. If you do not ever call stop(), then this action will block all others in the list and will continue to run until the parent EventEngine is stopped.

Return type:

None