Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
Classes | |
class | WaitInConversation |
Wait in conversation if running. More... | |
Public Member Functions | |
void | addListener (Listener listener) |
Add listener. More... | |
void | addListenerFactory (Block blockFactory) |
Add listener factory using block. More... | |
void | addListenerFactory (ListenerFactory factory) |
Add listener factory. More... | |
void | addPart (UnicodeString text) |
Add transmission part. More... | |
void | addPart (UnicodeString text, float timeout) |
Add transmission part. More... | |
void | addPart (UnicodeString text, StringID style) |
Add transmission part. More... | |
void | addPart (UnicodeString text, StringID style, float timeout) |
Add transmission part. More... | |
void | clear () |
Clear all parts and hide subtitle. More... | |
void | createListeners (Instance instance) |
Create listeners from factories adding them to behavior instance. More... | |
void | dispose () |
Dispose of behavior instance. More... | |
void | dispose () |
Dispose of behavior. More... | |
void | forEachListenerFactory (Block ablock) |
Visit listener factories with block with argument ListenerFactory. More... | |
bool | getClearEnterConversation () |
Clear transmission upon entering conversation. More... | |
ECPBoolean | getClearEnterConversation () |
Clear transmission upon entering conversation. More... | |
ECBehaviorConversationActor.Instance | getConversationActor () |
Conversation actor behavior. More... | |
ECBehaviorConversationActor | getConversationActor () |
Conversation actor behavior to animate. More... | |
ECBehaviorActorTransmission | getECBehavior () |
Behavior. More... | |
Part | getPartAt (int index) |
Part at index. More... | |
int | getPartCount () |
Count of parts. More... | |
StringID | getStyle () |
Style to use. More... | |
ECPStringID | getStyle () |
Style. More... | |
ConversationPlaybackSubTitle | getSubTitle () |
Sub title. More... | |
SubTitleBoxText | getSubTitleText () |
Sub title text or null if not set. More... | |
float | getTimeout () |
Timeout in seconds to display each part. More... | |
ECPFloat | getTimeout () |
Timeout. More... | |
bool | getWaitInConversation () |
Wait in conversation is enabled. More... | |
ECPBoolean | getWaitInConversation () |
Enable wait in conversation. More... | |
void | init (StubElement stub) |
Initialize behavior from stub. More... | |
bool | isRunning () |
Transmission is running. More... | |
Instance | new (BehaviorElementClass eclass, ECBehaviorConversationActor conversationActor) |
Create behavior element class. More... | |
Instance | new (BehaviorElementClass eclass, ECBehaviorConversationActor conversationActor, ConversationPlaybackSubTitle subTitle) |
Create behavior element class. More... | |
Instance | new (BehaviorElementClass eclass, ECBehaviorConversationActor conversationActor, ConversationPlaybackSubTitle subTitle, String prefix) |
Create behavior element class. More... | |
Instance | new (ECBehaviorActorTransmission ecbehavior, BehaviorElement element) |
Create behavior instance. More... | |
void | removeListener (Listener listener) |
Remove listener. More... | |
void | setClearEnterConversation (bool clearEnterConversation) |
Set to clear transmission upon entering conversation. More... | |
void | setStyle (StringID style) |
Set style to use. More... | |
void | setSubTitle (ConversationPlaybackSubTitle subTitle) |
Set sub title. More... | |
void | setTimeout (float timeout) |
Set timeout in seconds to display each part. More... | |
void | setWaitInConversation (bool waitInConversation) |
Set to wait in conversation is enabled. More... | |
void | think (float elapsed) |
Frame update. More... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Write behavior to file. More... | |
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 | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read behavior instance from file. 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... | |
Static Public Member Functions | |
static ECBehaviorActorTransmission | getBehaviorIn (BehaviorElementClass eclass) |
Get behavior in element class or null if absent. More... | |
Public Attributes | |
bool | pClearEnterConversation |
ECPBoolean | pClearEnterConversation |
ECBehaviorConversationActor.Instance | pConversationActor |
ECBehaviorConversationActor | pConversationActor |
ECBehaviorActorTransmission | pECBehavior |
Array | pListenerFactories |
Array | pListeners |
Array | pParts |
float | pRemainingDisplayTime |
StringID | pStyle |
ECPStringID | pStyle |
ConversationPlaybackSubTitle | pSubTitle |
SubTitleBoxText | pSubTitleText |
float | pTimeout |
ECPFloat | pTimeout |
bool | pWaitInConversation |
ECPBoolean | pWaitInConversation |
Protected Member Functions | |
void | displayPart (Part part) |
Display part. More... | |
void | onFinished () |
Transmission finished. More... | |
void | onPartDisplayed (Part part) |
Part displayed. More... | |
void | onStarted () |
Transmission started. More... | |
void | setSubTitleText (SubTitleBoxText text) |
Set sub title text or null to clear it. More... | |
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... | |
Behavior instance.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.addListener | ( | Listener | listener | ) |
Add listener.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.addListenerFactory | ( | Block | blockFactory | ) |
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.addListenerFactory | ( | ListenerFactory | factory | ) |
Add listener factory.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.addPart | ( | UnicodeString | text | ) |
Add transmission part.
If no parts are present calls transmissionStart() on listeners and shows the transmission in the sub title box.
text | Text to speak. |
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.addPart | ( | UnicodeString | text, |
float | timeout | ||
) |
Add transmission part.
If no parts are present calls transmissionStart() on listeners and shows the transmission in the sub title box.
text | Text to speak. |
timeout | Time in seconds to display transmission part. |
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.addPart | ( | UnicodeString | text, |
StringID | style | ||
) |
Add transmission part.
If no parts are present calls transmissionStart() on listeners and shows the transmission in the sub title box.
text | Text to speak. |
style | Identifier of style to adjust font, color or sub title in general or null. |
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.addPart | ( | UnicodeString | text, |
StringID | style, | ||
float | timeout | ||
) |
Add transmission part.
If no parts are present calls transmissionStart() on listeners and shows the transmission in the sub title box.
text | Text to speak. |
style | Identifier of style to adjust font, color or sub title in general or null. |
timeout | Time in seconds to display transmission part. |
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.clear | ( | ) |
Clear all parts and hide subtitle.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.createListeners | ( | Instance | instance | ) |
Create listeners from factories adding them to behavior instance.
|
protected |
Display part.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.dispose | ( | ) |
Dispose of behavior instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.dispose | ( | ) |
Dispose of behavior.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.forEachListenerFactory | ( | Block | ablock | ) |
Visit listener factories with block with argument ListenerFactory.
|
static |
Get behavior in element class or null if absent.
Use this method to check if a particular BehaviorElementClass contains a behavior of type ECBehaviorConversationActor.
bool Dragengine.Scenery.ECBehaviorActorTransmission.Instance.getClearEnterConversation | ( | ) |
Clear transmission upon entering conversation.
ECPBoolean Dragengine.Scenery.ECBehaviorActorTransmission.Instance.getClearEnterConversation | ( | ) |
Clear transmission upon entering conversation.
ECBehaviorConversationActor.Instance Dragengine.Scenery.ECBehaviorActorTransmission.Instance.getConversationActor | ( | ) |
Conversation actor behavior.
ECBehaviorConversationActor Dragengine.Scenery.ECBehaviorActorTransmission.Instance.getConversationActor | ( | ) |
Conversation actor behavior to animate.
ECBehaviorActorTransmission Dragengine.Scenery.ECBehaviorActorTransmission.Instance.getECBehavior | ( | ) |
Behavior.
Part Dragengine.Scenery.ECBehaviorActorTransmission.Instance.getPartAt | ( | int | index | ) |
Part at index.
int Dragengine.Scenery.ECBehaviorActorTransmission.Instance.getPartCount | ( | ) |
Count of parts.
StringID Dragengine.Scenery.ECBehaviorActorTransmission.Instance.getStyle | ( | ) |
Style to use.
ECPStringID Dragengine.Scenery.ECBehaviorActorTransmission.Instance.getStyle | ( | ) |
Style.
ConversationPlaybackSubTitle Dragengine.Scenery.ECBehaviorActorTransmission.Instance.getSubTitle | ( | ) |
Sub title.
SubTitleBoxText Dragengine.Scenery.ECBehaviorActorTransmission.Instance.getSubTitleText | ( | ) |
Sub title text or null if not set.
float Dragengine.Scenery.ECBehaviorActorTransmission.Instance.getTimeout | ( | ) |
Timeout in seconds to display each part.
ECPFloat Dragengine.Scenery.ECBehaviorActorTransmission.Instance.getTimeout | ( | ) |
Timeout.
bool Dragengine.Scenery.ECBehaviorActorTransmission.Instance.getWaitInConversation | ( | ) |
Wait in conversation is enabled.
ECPBoolean Dragengine.Scenery.ECBehaviorActorTransmission.Instance.getWaitInConversation | ( | ) |
Enable wait in conversation.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.init | ( | StubElement | stub | ) |
Initialize behavior from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
bool Dragengine.Scenery.ECBehaviorActorTransmission.Instance.isRunning | ( | ) |
Transmission is running.
Instance Dragengine.Scenery.ECBehaviorActorTransmission.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorConversationActor | conversationActor | ||
) |
Create behavior element class.
Instance Dragengine.Scenery.ECBehaviorActorTransmission.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorConversationActor | conversationActor, | ||
ConversationPlaybackSubTitle | subTitle | ||
) |
Create behavior element class.
Instance Dragengine.Scenery.ECBehaviorActorTransmission.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorConversationActor | conversationActor, | ||
ConversationPlaybackSubTitle | subTitle, | ||
String | prefix | ||
) |
Create behavior element class.
Instance Dragengine.Scenery.ECBehaviorActorTransmission.Instance.new | ( | ECBehaviorActorTransmission | ecbehavior, |
BehaviorElement | element | ||
) |
Create behavior instance.
|
protected |
Transmission finished.
|
protected |
Part displayed.
|
protected |
Transmission started.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.setClearEnterConversation | ( | bool | clearEnterConversation | ) |
Set to clear transmission upon entering conversation.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.setStyle | ( | StringID | style | ) |
Set style to use.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.setSubTitle | ( | ConversationPlaybackSubTitle | subTitle | ) |
Set sub title.
|
protected |
Set sub title text or null to clear it.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.setTimeout | ( | float | timeout | ) |
Set timeout in seconds to display each part.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.setWaitInConversation | ( | bool | waitInConversation | ) |
Set to wait in conversation is enabled.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.think | ( | float | elapsed | ) |
Frame update.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorActorTransmission.Instance.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Write behavior to file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
bool Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pClearEnterConversation |
ECPBoolean Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pClearEnterConversation |
ECBehaviorConversationActor.Instance Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pConversationActor |
ECBehaviorConversationActor Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pConversationActor |
ECBehaviorActorTransmission Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pECBehavior |
Array Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pListenerFactories |
Array Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pListeners |
Array Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pParts |
float Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pRemainingDisplayTime |
StringID Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pStyle |
ECPStringID Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pStyle |
ConversationPlaybackSubTitle Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pSubTitle |
SubTitleBoxText Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pSubTitleText |
float Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pTimeout |
ECPFloat Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pTimeout |
bool Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pWaitInConversation |
ECPBoolean Dragengine.Scenery.ECBehaviorActorTransmission.Instance.pWaitInConversation |