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

Behavior tree action sending a global event. More...

Inheritance diagram for Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent:
Dragengine.BehaviorTreeSystem.BTAction

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.
BTActionSendGlobalEvent new (GlobalEvents globalEvents, String event)
 Create action.
BTActionSendGlobalEvent new (GlobalEvents globalEvents, String event, Object source, Object data)
 Create action.
BTActionSendGlobalEvent new (String event)
 Create action using BaseGameApp global events.
BTActionSendGlobalEvent new (String event, Object source, Object data)
 Create action using BaseGameApp global events.
BTResult runAction (BTContext 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.

Public Attributes

Object pData
String pEvent
GlobalEvents pGlobalEvents
Object pSource

Detailed Description

Behavior tree action sending a global event.

This action always returns BTResult.success.

Member Function Documentation

◆ getData()

Object Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.getData ( )

Optional parameter to send with event.

Referenced by runAction().

◆ getEvent()

String Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.getEvent ( )

Event to send.

References pEvent, and pGlobalEvents.

Referenced by setData().

◆ getGlobalEvents()

GlobalEvents Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.getGlobalEvents ( )

Global event instance to send event to.

References new().

Referenced by setSource().

◆ getSource()

Object Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.getSource ( )

Optional source of event.

Referenced by runAction().

◆ new() [1/4]

BTActionSendGlobalEvent Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.new ( GlobalEvents globalEvents,
String event )

Create action.

◆ new() [2/4]

BTActionSendGlobalEvent Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.new ( GlobalEvents globalEvents,
String event,
Object source,
Object data )

Create action.

References new().

◆ new() [3/4]

BTActionSendGlobalEvent Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.new ( String event)

Create action using BaseGameApp global events.

References new().

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

◆ new() [4/4]

BTActionSendGlobalEvent Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.new ( String event,
Object source,
Object data )

Create action using BaseGameApp global events.

References new().

◆ runAction()

BTResult Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.runAction ( BTContext 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.BehaviorTreeSystem.BTAction.

References getData(), getSource(), new(), pData, pEvent, pGlobalEvents, pSource, runAction(), setData(), setEvent(), and setSource().

Referenced by runAction().

◆ setData()

void Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.setData ( Object data)

Set optional parameter to send with event.

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

Referenced by runAction().

◆ setEvent()

void Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.setEvent ( String event)

Set event to send.

References pData, and pSource.

Referenced by runAction().

◆ setGlobalEvents()

void Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.setGlobalEvents ( GlobalEvents globalEvents)

Set global event instance to send event to.

References new().

Referenced by setData().

◆ setSource()

void Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.setSource ( Object source)

Set optional source of event.

References getGlobalEvents(), and pGlobalEvents.

Referenced by runAction().

Member Data Documentation

◆ pData

Object Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.pData

Referenced by runAction(), and setEvent().

◆ pEvent

String Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.pEvent

Referenced by getEvent(), and runAction().

◆ pGlobalEvents

GlobalEvents Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.pGlobalEvents

◆ pSource

Object Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.pSource

Referenced by runAction(), and setEvent().


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