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

Behavior instance. More...

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

Classes

class  ColliderAIListener
 Collider AI listener forwarding to Action/AI. More...
 
class  ConvoActorListener
 Conversation actor listener forwarding to Action/AI. More...
 
class  PlayerTakeControlListener
 Forward player takes controll to Action/AI. More...
 

Public Member Functions

void addToGameWorld ()
 Add element to game world. More...
 
void dispose ()
 Dispose of behavior instance. More...
 
void enterFrame ()
 Frame update started. More...
 
BaseActorAction getAction ()
 Active action or null. More...
 
BaseActorAI getAI ()
 Active AI or null. More...
 
ECBehaviorConversationActor.Instance getConversationActor ()
 Conversation actor if present. More...
 
ECBehaviorActorAIAction getECBehavior ()
 Behavior. More...
 
ECBehaviorPlayerControllable.Instance getPlayerControllable ()
 Player controllable actor if present. More...
 
void init (StubElement stub)
 Initialize behavior from stub. More...
 
Instance new (ECBehaviorActorAIAction ecbehavior, BehaviorElement element)
 Create behavior instance. More...
 
void postThink (float elapsed)
 Post thinking after physics processing is finished. More...
 
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read behavior from file. More...
 
void removeFromGameWorld ()
 Remove element from game world. More...
 
void setAction (BaseActorAction action)
 Set active action or null. More...
 
void setActionAndDispose (BaseActorAction action)
 Set active action or null. More...
 
void setAI (BaseActorAI ai)
 Set active AI or null. More...
 
void setAIAndDispose (BaseActorAI ai)
 Set active AI or null. More...
 
void think (float elapsed)
 Think about what to do for the next frame update. More...
 
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write behavior to file. More...
 
- Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void attachToParent (Element parent)
 Attach element to object set by the mapper in the IGDE World Editor. 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...
 
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...
 

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

◆ addToGameWorld()

void Dragengine.Scenery.ECBehaviorActorAIAction.Instance.addToGameWorld ( )

Add element to game world.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ dispose()

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

Dispose of behavior instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ enterFrame()

void Dragengine.Scenery.ECBehaviorActorAIAction.Instance.enterFrame ( )

Frame update started.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ getAction()

BaseActorAction Dragengine.Scenery.ECBehaviorActorAIAction.Instance.getAction ( )

Active action or null.

◆ getAI()

BaseActorAI Dragengine.Scenery.ECBehaviorActorAIAction.Instance.getAI ( )

Active AI or null.

◆ getConversationActor()

ECBehaviorConversationActor.Instance Dragengine.Scenery.ECBehaviorActorAIAction.Instance.getConversationActor ( )

Conversation actor if present.

◆ getECBehavior()

ECBehaviorActorAIAction Dragengine.Scenery.ECBehaviorActorAIAction.Instance.getECBehavior ( )

Behavior.

◆ getPlayerControllable()

ECBehaviorPlayerControllable.Instance Dragengine.Scenery.ECBehaviorActorAIAction.Instance.getPlayerControllable ( )

Player controllable actor if present.

◆ init()

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

Initialize behavior from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ new()

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

Create behavior instance.

◆ postThink()

void Dragengine.Scenery.ECBehaviorActorAIAction.Instance.postThink ( float  elapsed)

Post thinking after physics processing is finished.

If actor is player controlled calls BaseActorAction.playerPostThink(float) and BaseActorAction.postThink(float). If actor is not player controlled only BaseActorAction.postThink(float) is called.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ readFromFile()

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

Read behavior from file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ removeFromGameWorld()

void Dragengine.Scenery.ECBehaviorActorAIAction.Instance.removeFromGameWorld ( )

Remove element from game world.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ setAction()

void Dragengine.Scenery.ECBehaviorActorAIAction.Instance.setAction ( BaseActorAction  action)

Set active action or null.

Does not call dispose() on old action if present.

◆ setActionAndDispose()

void Dragengine.Scenery.ECBehaviorActorAIAction.Instance.setActionAndDispose ( BaseActorAction  action)

Set active action or null.

Calls dispose() on old action if present.

◆ setAI()

void Dragengine.Scenery.ECBehaviorActorAIAction.Instance.setAI ( BaseActorAI  ai)

Set active AI or null.

Does not call dispose() on old AI if present.

◆ setAIAndDispose()

void Dragengine.Scenery.ECBehaviorActorAIAction.Instance.setAIAndDispose ( BaseActorAI  ai)

Set active AI or null.

Calls dispose() on old AI if present.

◆ think()

void Dragengine.Scenery.ECBehaviorActorAIAction.Instance.think ( float  elapsed)

Think about what to do for the next frame update.

If actor is player controlled calls BaseActorAction.playerThink() and BaseActorAction.think(). If actor is not player controlled calls BaseActorAI.think() and BaseActorAction.think(). This avoids the need for AI and Action to check if they are player controlled or not.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ writeToFile()

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

Write behavior to file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.


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