Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance Class Reference

Behavior instance. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance:
Dragengine.Scenery.DefaultECBehaviorInstance Dragengine.Scenery.ECBehaviorInstance

Classes

class  ActionFlagsCheck
 Behavior tree action "Flags.check". More...
 
class  ActionFlagsSet
 Behavior tree action "flags.set". More...
 
class  ConditionFlagsState
 Behavior tree condition "flags.state". More...
 

Public Member Functions

void dispose ()
 Dispose of behavior instance. More...
 
void dispose ()
 Dispose of behavior. More...
 
ECBehaviorBehaviorTree.Instance getBehaviorTree ()
 Behavior tree behavior or null. More...
 
ECBehaviorBehaviorTree getBehaviorTree ()
 Behavior tree behavior. More...
 
ECBehaviorBehaviorTreeFlags getECBehavior ()
 Behavior. More...
 
bool getFlag (String name)
 Flag is set. More...
 
void init (StubElement stub)
 Initialize element from stub. More...
 
Instance instance (BehaviorElement element)
 Get instance in element from owner element class. More...
 
Instance new (BehaviorElementClass eclass, ECBehaviorBehaviorTree behaviorTree)
 Create behavior element class. More...
 
Instance new (BehaviorElementClass eclass, ECBehaviorBehaviorTree behaviorTree, String id)
 
Instance new (ECBehaviorBehaviorTreeFlags ecbehavior, BehaviorElement element)
 Create element. More...
 
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read element from file. More...
 
void setFlag (String name, bool flagged)
 Set flag. More...
 
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 
- Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void addToGameWorld ()
 Add element to game world. More...
 
void attachToParent (Element parent)
 Attach element to object set by the mapper in the IGDE World Editor. More...
 
void enterFrame ()
 Frame update started. More...
 
void geometryChanged ()
 Position or orientation changed. More...
 
BehaviorElement getElement ()
 Behavior element to apply behavior to. More...
 
int getInstanceIndex ()
 Behavior instance index. More...
 
DefaultECBehaviorInstance new (BehaviorElement element)
 Create default composeable instance. More...
 
void postThink (float elapsed)
 Post thinking after physics processing is finished. More...
 
void removeFromGameWorld ()
 Remove element from game world. More...
 
bool requiresEnterFrame ()
 Behavior instance requires enterFrame() to be called. More...
 
bool requiresThink ()
 Behavior instance requires think() to be called. More...
 
void stateChanged ()
 State changed (visble, touchable). More...
 
void think (float elapsed)
 Think about what to do for the next frame update. More...
 

Static Public Member Functions

static ECBehaviorBehaviorTreeFlags getBehaviorIn (BehaviorElementClass eclass)
 Get behavior in element class or null if absent. More...
 

Public Attributes

ECBehaviorBehaviorTree.Instance pBehaviorTree
 
ECBehaviorBehaviorTree pBehaviorTree
 
ECBehaviorBehaviorTreeFlags pECBehavior
 
Dictionary pFlags
 

Additional Inherited Members

- Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void setRequiresEnterFrame (bool required)
 Set if behavior instance requires enterFrame() to be called. More...
 
void setRequiresThink (bool required)
 Set if behavior instance requires think() to be called. More...
 

Detailed Description

Behavior instance.

Member Function Documentation

◆ dispose() [1/2]

void Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.dispose ( )

Dispose of behavior instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ dispose() [2/2]

void Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.dispose ( )

Dispose of behavior.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ getBehaviorIn()

static ECBehaviorBehaviorTreeFlags Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.getBehaviorIn ( BehaviorElementClass  eclass)
static

Get behavior in element class or null if absent.

Use this method to check if a particular BehaviorElementClass contains a behavior of type ECBehaviorBehaviorTree.

◆ getBehaviorTree() [1/2]

ECBehaviorBehaviorTree.Instance Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.getBehaviorTree ( )

Behavior tree behavior or null.

◆ getBehaviorTree() [2/2]

ECBehaviorBehaviorTree Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.getBehaviorTree ( )

Behavior tree behavior.

◆ getECBehavior()

ECBehaviorBehaviorTreeFlags Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.getECBehavior ( )

Behavior.

◆ getFlag()

bool Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.getFlag ( String  name)

Flag is set.

◆ init()

void Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.init ( StubElement  stub)

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ instance()

Instance Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.instance ( BehaviorElement  element)

Get instance in element from owner element class.

◆ new() [1/3]

Instance Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorBehaviorTree  behaviorTree 
)

Create behavior element class.

◆ new() [2/3]

Instance Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorBehaviorTree  behaviorTree,
String  id 
)

◆ new() [3/3]

Instance Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.new ( ECBehaviorBehaviorTreeFlags  ecbehavior,
BehaviorElement  element 
)

Create element.

◆ readFromFile()

void Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.readFromFile ( PersistencyEnvironment  env,
FileReader  reader 
)

Read element from file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ setFlag()

void Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.setFlag ( String  name,
bool  flagged 
)

Set flag.

◆ writeToFile()

void Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.writeToFile ( PersistencyEnvironment  env,
FileWriter  writer 
)

Writes the element to a file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Member Data Documentation

◆ pBehaviorTree [1/2]

ECBehaviorBehaviorTree.Instance Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.pBehaviorTree

◆ pBehaviorTree [2/2]

ECBehaviorBehaviorTree Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.pBehaviorTree

◆ pECBehavior

ECBehaviorBehaviorTreeFlags Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.pECBehavior

◆ pFlags

Dictionary Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.pFlags

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