Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.StateMachineSystem.SMActionSendGlobalEvent Class Reference

State machine action sending a global event. More...

Inheritance diagram for Dragengine.StateMachineSystem.SMActionSendGlobalEvent:
Dragengine.StateMachineSystem.SMAction

Public Member Functions

Object getData ()
 Optional parameter to send with event.
String getEvent ()
 Event to send.
GlobalEvents getGlobalEvents ()
 Global event instance to send event to.
Object getSource ()
 Optional source of event.
SMActionSendGlobalEvent new (GlobalEvents globalEvents, String event)
 Create action.
SMActionSendGlobalEvent new (GlobalEvents globalEvents, String event, Object source, Object data)
 Create action.
SMActionSendGlobalEvent new (String event)
 Create action using BaseGameApp global events.
SMActionSendGlobalEvent new (String event, Object source, Object data)
 Create action using BaseGameApp global events.
void runAction (SMContext context, Dictionary parameters)
 Run action.
void setData (Object data)
 Set optional parameter to send with event.
void setEvent (String event)
 Set event to send.
void setGlobalEvents (GlobalEvents globalEvents)
 Set global event instance to send event to.
void setSource (Object source)
 Set optional source of event.

Detailed Description

State machine action sending a global event.

Member Function Documentation

◆ getData()

Object Dragengine.StateMachineSystem.SMActionSendGlobalEvent.getData ( )

Optional parameter to send with event.

Referenced by runAction().

◆ getEvent()

String Dragengine.StateMachineSystem.SMActionSendGlobalEvent.getEvent ( )

Event to send.

Referenced by setData().

◆ getGlobalEvents()

GlobalEvents Dragengine.StateMachineSystem.SMActionSendGlobalEvent.getGlobalEvents ( )

Global event instance to send event to.

References new().

Referenced by setSource().

◆ getSource()

Object Dragengine.StateMachineSystem.SMActionSendGlobalEvent.getSource ( )

Optional source of event.

Referenced by runAction().

◆ new() [1/4]

SMActionSendGlobalEvent Dragengine.StateMachineSystem.SMActionSendGlobalEvent.new ( GlobalEvents globalEvents,
String event )

Create action.

◆ new() [2/4]

SMActionSendGlobalEvent Dragengine.StateMachineSystem.SMActionSendGlobalEvent.new ( GlobalEvents globalEvents,
String event,
Object source,
Object data )

Create action.

References new().

◆ new() [3/4]

SMActionSendGlobalEvent Dragengine.StateMachineSystem.SMActionSendGlobalEvent.new ( String event)

Create action using BaseGameApp global events.

References new().

Referenced by getGlobalEvents(), new(), new(), new(), runAction(), setData(), and setGlobalEvents().

◆ new() [4/4]

SMActionSendGlobalEvent Dragengine.StateMachineSystem.SMActionSendGlobalEvent.new ( String event,
Object source,
Object data )

Create action using BaseGameApp global events.

References new().

◆ runAction()

void Dragengine.StateMachineSystem.SMActionSendGlobalEvent.runAction ( SMContext context,
Dictionary parameters )

Run action.

Parameters
parametersDictionary with parameters of type String key and String value. Do not change the content of the dictionary as it is shared.

Implements Dragengine.StateMachineSystem.SMAction.

References getData(), getSource(), new(), runAction(), setData(), setEvent(), and setSource().

Referenced by runAction().

◆ setData()

void Dragengine.StateMachineSystem.SMActionSendGlobalEvent.setData ( Object data)

Set optional parameter to send with event.

References getEvent(), new(), and setGlobalEvents().

Referenced by runAction().

◆ setEvent()

void Dragengine.StateMachineSystem.SMActionSendGlobalEvent.setEvent ( String event)

Set event to send.

Referenced by runAction().

◆ setGlobalEvents()

void Dragengine.StateMachineSystem.SMActionSendGlobalEvent.setGlobalEvents ( GlobalEvents globalEvents)

Set global event instance to send event to.

References new().

Referenced by setData().

◆ setSource()

void Dragengine.StateMachineSystem.SMActionSendGlobalEvent.setSource ( Object source)

Set optional source of event.

References getGlobalEvents().

Referenced by runAction().


The documentation for this class was generated from the following file: