|
Drag[en]gine Script Module DragonScript 1.35
|
Behavior instance. More...
Classes | |
| class | BTAStart |
| Behavior tree action "conversation{(id)}.start". More... | |
| class | StartConversationListener |
| Trigger listener to start conversation. More... | |
Public Member Functions | |
| bool | canStartConversation () |
| Conversation can be started. | |
| void | dispose () |
| Dispose of behavior instance. | |
| StringID | getAddPlayer () |
| Add player as first actor if identifier is not null. | |
| Conversation | getConversation () |
| Conversation. | |
| ECBehaviorConversationActor.Instance | getConversationActor () |
| Conversation actor behavior instance or null if not present. | |
| ConversationPlayback | getConversationPlayback () |
| Conversation playback if running or null if not running. | |
| bool | getDirectCamera () |
| Conversation directs camera. | |
| ECBehaviorConversation | getECBehavior () |
| Behavior. | |
| ConversationActor | getPlayerConversationActor () |
| Player conversation actor or null if not supported. | |
| SimpleConversation | getSimpleConversation () |
| Simple conversation. | |
| StringID | getTopic () |
| Topic to use for conversation. | |
| StringID | getTopicGroup () |
| Topic group to use for conversation. | |
| ECBehaviorTriggered.Instance | getTrigger () |
| Trigger or null. | |
| void | init (StubElement stub) |
| Initialize element from stub. | |
| Instance | new (ECBehaviorConversation ecbehavior, BehaviorElement element) |
| Create element. | |
| void | readFromFile (PersistencyEnvironment env, FileReader reader) |
| Read element from file. | |
| void | setDirectCamera (bool directCamera) |
| Set if conversation directs camera. | |
| void | setTopic (StringID id) |
| Set topic to use for conversation. | |
| void | startConversation () |
| Start conversation. | |
| void | stopConversation () |
| Stop conversation immediately if running. | |
| void | think (float elapsed) |
| Think about what the element is going to do in this frame. | |
| void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
| Write element to file. | |
| Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
| void | addToGameWorld () |
| Add element to game world. | |
| void | attachToParent (Element parent) |
| Attach element to object set by the mapper in the IGDE World Editor. | |
| void | enterFrame () |
| Frame update started. | |
| void | geometryChanged () |
| Position or orientation changed. | |
| BehaviorElement | getElement () |
| Behavior element to apply behavior to. | |
| int | getInstanceIndex () |
| Behavior instance index. | |
| DefaultECBehaviorInstance | new (BehaviorElement element) |
| Create default composeable instance. | |
| void | postThink (float elapsed) |
| Post thinking after physics processing is finished. | |
| void | removeFromGameWorld () |
| Remove element from game world. | |
| bool | requiresEnterFrame () |
| Behavior instance requires enterFrame() to be called. | |
| bool | requiresThink () |
| Behavior instance requires think() to be called. | |
| void | stateChanged () |
| State changed (visble, touchable). | |
Public Attributes | |
| StringID | pAddPlayer |
| Conversation | pConversation |
| ECBehaviorConversationActor.Instance | pConversationActor |
| ConversationPlayback | pConversationPlayback |
| bool | pDirectCamera |
| ECBehaviorConversation | pECBehavior |
| SimpleConversation | pSimpleConversation |
| StringID | pTopic |
| StringID | pTopicGroup |
| ECBehaviorTriggered.Instance | pTrigger |
| Public Attributes inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
| BehaviorElement | pElement |
| int | pInstanceIndex |
| bool | pRequiresEnterFrame |
| bool | pRequiresThink |
Protected Member Functions | |
| ConversationPlayback | createPlayback () |
| Create conversation playback. | |
| Conversation | loadConversation (StubElement stub) |
| Load conversation. | |
| SimpleConversation | loadSimpleConversation (StubElement stub) |
| Load simple conversation or null. | |
| void | setAddPlayer (StringID id) |
| Set if player is added as first actor if identifier is not null. | |
| void | setConversation (Conversation conversation) |
| Set conversation. | |
| void | setConversationPlayback (ConversationPlayback playback) |
| Set conversation playback if running or null if not running. | |
| void | setSimpleConversation (SimpleConversation simpleConversation) |
| Set conversation. | |
| void | setTopicGroup (StringID id) |
| Set topic group to use for conversation. | |
| Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
| void | setRequiresEnterFrame (bool required) |
| Set if behavior instance requires enterFrame() to be called. | |
| void | setRequiresThink (bool required) |
| Set if behavior instance requires think() to be called. | |
Behavior instance.
| bool Dragengine.Scenery.ECBehaviorConversation.Instance.canStartConversation | ( | ) |
Conversation can be started.
Returns true if all of these conditions are true:
References pConversation, and setConversation().
|
protected |
Create conversation playback.
Default implementation calls BaseGameApp.createConversationPlayback(). If direct camera is false sets the camera director to null. If player is not in the conversation sets input processor to null.
Caller is responsible to set topic and add actors.
References setSimpleConversation().
| void Dragengine.Scenery.ECBehaviorConversation.Instance.dispose | ( | ) |
Dispose of behavior instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Referenced by setAddPlayer(), and setSimpleConversation().
| StringID Dragengine.Scenery.ECBehaviorConversation.Instance.getAddPlayer | ( | ) |
Add player as first actor if identifier is not null.
References pConversationActor, pTrigger, and stopConversation().
Referenced by getConversationActor(), and think().
| Conversation Dragengine.Scenery.ECBehaviorConversation.Instance.getConversation | ( | ) |
References pAddPlayer, pConversation, and pSimpleConversation.
Referenced by getDirectCamera(), and getTrigger().
| ECBehaviorConversationActor.Instance Dragengine.Scenery.ECBehaviorConversation.Instance.getConversationActor | ( | ) |
Conversation actor behavior instance or null if not present.
References getAddPlayer(), getConversationActor(), getDirectCamera(), Dragengine.Scenery.ECBehaviorConversation.instance(), pAddPlayer, pConversationActor, pDirectCamera, and pECBehavior.
Referenced by getConversationActor().
| ConversationPlayback Dragengine.Scenery.ECBehaviorConversation.Instance.getConversationPlayback | ( | ) |
Conversation playback if running or null if not running.
Referenced by writeToFile().
| bool Dragengine.Scenery.ECBehaviorConversation.Instance.getDirectCamera | ( | ) |
Conversation directs camera.
References getConversation(), loadConversation(), and pECBehavior.
Referenced by getConversationActor().
| ECBehaviorConversation Dragengine.Scenery.ECBehaviorConversation.Instance.getECBehavior | ( | ) |
| ConversationActor Dragengine.Scenery.ECBehaviorConversation.Instance.getPlayerConversationActor | ( | ) |
Player conversation actor or null if not supported.
References getSimpleConversation(), loadSimpleConversation(), and pECBehavior.
| SimpleConversation Dragengine.Scenery.ECBehaviorConversation.Instance.getSimpleConversation | ( | ) |
Simple conversation.
References new(), and pECBehavior.
Referenced by getPlayerConversationActor(), and startConversation().
| StringID Dragengine.Scenery.ECBehaviorConversation.Instance.getTopic | ( | ) |
Topic to use for conversation.
References Dragengine.Scenery.ECBehaviorConversation.getBehaviorTree(), Dragengine.Scenery.ECBehaviorConversation.getPrefix(), Dragengine.Scenery.ECBehaviorConversation.instance(), and pECBehavior.
Referenced by getTopicGroup().
| StringID Dragengine.Scenery.ECBehaviorConversation.Instance.getTopicGroup | ( | ) |
Topic group to use for conversation.
If null simple conversation has to be set.
References getTopic(), getTopicGroup(), Dragengine.Scenery.ECBehaviorConversation.getTriggered(), Dragengine.Scenery.ECBehaviorConversation.instance(), loadConversation(), loadSimpleConversation(), pConversation, pECBehavior, pSimpleConversation, pTopic, pTopicGroup, and pTrigger.
Referenced by getTopicGroup().
| ECBehaviorTriggered.Instance Dragengine.Scenery.ECBehaviorConversation.Instance.getTrigger | ( | ) |
Trigger or null.
References getConversation(), getECBehavior(), and pECBehavior.
| void Dragengine.Scenery.ECBehaviorConversation.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Referenced by setConversationPlayback().
|
protected |
Load conversation.
References Dragengine.Scenery.ECBehaviorConversation.instance(), and new().
Referenced by getDirectCamera(), and getTopicGroup().
|
protected |
Load simple conversation or null.
References startConversation().
Referenced by getPlayerConversationActor(), and getTopicGroup().
| Instance Dragengine.Scenery.ECBehaviorConversation.Instance.new | ( | ECBehaviorConversation | ecbehavior, |
| BehaviorElement | element ) |
Create element.
Referenced by getSimpleConversation(), and loadConversation().
| void Dragengine.Scenery.ECBehaviorConversation.Instance.readFromFile | ( | PersistencyEnvironment | env, |
| FileReader | reader ) |
Read element from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
References pAddPlayer, and setAddPlayer().
|
protected |
Set if player is added as first actor if identifier is not null.
References dispose().
Referenced by readFromFile().
|
protected |
Set conversation.
References pConversationActor, pConversationPlayback, pDirectCamera, pTopic, pTopicGroup, and pTrigger.
Referenced by canStartConversation().
|
protected |
Set conversation playback if running or null if not running.
References Dragengine.Scenery.DefaultECBehaviorInstance.getElement(), and init().
| void Dragengine.Scenery.ECBehaviorConversation.Instance.setDirectCamera | ( | bool | directCamera | ) |
Set if conversation directs camera.
|
protected |
| void Dragengine.Scenery.ECBehaviorConversation.Instance.setTopic | ( | StringID | id | ) |
Set topic to use for conversation.
|
protected |
Set topic group to use for conversation.
If null simple conversation has to be set.
References Dragengine.Scenery.ECBehaviorConversation.getBehaviorTree(), pECBehavior, and pTrigger.
| void Dragengine.Scenery.ECBehaviorConversation.Instance.startConversation | ( | ) |
Start conversation.
Throws exception if canStartConversation() returns false.
References getSimpleConversation(), and pSimpleConversation.
Referenced by loadSimpleConversation().
| void Dragengine.Scenery.ECBehaviorConversation.Instance.stopConversation | ( | ) |
Stop conversation immediately if running.
References pSimpleConversation.
Referenced by getAddPlayer().
| void Dragengine.Scenery.ECBehaviorConversation.Instance.think | ( | float | elapsed | ) |
Think about what the element is going to do in this frame.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
References getAddPlayer(), and pAddPlayer.
| void Dragengine.Scenery.ECBehaviorConversation.Instance.writeToFile | ( | PersistencyEnvironment | env, |
| FileWriter | writer ) |
Write element to file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
References getConversationPlayback().
| StringID Dragengine.Scenery.ECBehaviorConversation.Instance.pAddPlayer |
Referenced by getConversation(), getConversationActor(), readFromFile(), and think().
| Conversation Dragengine.Scenery.ECBehaviorConversation.Instance.pConversation |
Referenced by canStartConversation(), getConversation(), and getTopicGroup().
| ECBehaviorConversationActor.Instance Dragengine.Scenery.ECBehaviorConversation.Instance.pConversationActor |
Referenced by getAddPlayer(), getConversationActor(), and setConversation().
| ConversationPlayback Dragengine.Scenery.ECBehaviorConversation.Instance.pConversationPlayback |
Referenced by setConversation().
| bool Dragengine.Scenery.ECBehaviorConversation.Instance.pDirectCamera |
Referenced by getConversationActor(), and setConversation().
| ECBehaviorConversation Dragengine.Scenery.ECBehaviorConversation.Instance.pECBehavior |
| SimpleConversation Dragengine.Scenery.ECBehaviorConversation.Instance.pSimpleConversation |
Referenced by getConversation(), getTopicGroup(), startConversation(), and stopConversation().
| StringID Dragengine.Scenery.ECBehaviorConversation.Instance.pTopic |
Referenced by getTopicGroup(), and setConversation().
| StringID Dragengine.Scenery.ECBehaviorConversation.Instance.pTopicGroup |
Referenced by getTopicGroup(), and setConversation().
| ECBehaviorTriggered.Instance Dragengine.Scenery.ECBehaviorConversation.Instance.pTrigger |
Referenced by getAddPlayer(), getTopicGroup(), setConversation(), and setTopicGroup().