Drag[en]gine Script Module DragonScript  1.23
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. More...
 
String getEvent ()
 Event to send. More...
 
GlobalEvents getGlobalEvents ()
 Global event instance to send event to. More...
 
Object getSource ()
 Optional source of event. More...
 
SMActionSendGlobalEvent new (GlobalEvents globalEvents, String event)
 Create action. More...
 
SMActionSendGlobalEvent new (GlobalEvents globalEvents, String event, Object source, Object data)
 Create action. More...
 
SMActionSendGlobalEvent new (String event)
 Create action using BaseGameApp global events. More...
 
SMActionSendGlobalEvent new (String event, Object source, Object data)
 Create action using BaseGameApp global events. More...
 
void runAction (SMContext context, Dictionary parameters)
 Run action. More...
 
void setData (Object data)
 Set optional parameter to send with event. More...
 
void setEvent (String event)
 Set event to send. More...
 
void setGlobalEvents (GlobalEvents globalEvents)
 Set global event instance to send event to. More...
 
void setSource (Object source)
 Set optional source of event. More...
 

Detailed Description

State machine action sending a global event.

Member Function Documentation

◆ getData()

Object Dragengine.StateMachineSystem.SMActionSendGlobalEvent.getData ( )

Optional parameter to send with event.

◆ getEvent()

String Dragengine.StateMachineSystem.SMActionSendGlobalEvent.getEvent ( )

Event to send.

◆ getGlobalEvents()

GlobalEvents Dragengine.StateMachineSystem.SMActionSendGlobalEvent.getGlobalEvents ( )

Global event instance to send event to.

◆ getSource()

Object Dragengine.StateMachineSystem.SMActionSendGlobalEvent.getSource ( )

Optional source of event.

◆ 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.

◆ new() [3/4]

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

Create action using BaseGameApp global events.

◆ new() [4/4]

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

Create action using BaseGameApp global events.

◆ 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.

◆ setData()

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

Set optional parameter to send with event.

◆ setEvent()

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

Set event to send.

◆ setGlobalEvents()

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

Set global event instance to send event to.

◆ setSource()

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

Set optional source of event.


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