Drag[en]gine Script Module DragonScript
1.21
|
Behavior instance. More...
Classes | |
class | PlayerTakesControl |
Player takes control listener. 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 | createListeners (Instance instance) |
Create listeners from factories adding them to behavior instance. More... | |
void | dispose () |
Dispose of instance. More... | |
void | dispose () |
Dispose of behavior. More... | |
void | forEachListenerFactory (Block ablock) |
Visit listener factories with block with argument ListenerFactory. More... | |
int | getBindingIconHeight () |
Binding icon height. More... | |
ECPInteger | getBindingIconHeight () |
Binding icon height. More... | |
BindingManager | getBindingManager () |
Binding manager or null. More... | |
CommandManager | getCommandManager () |
Command manager or null. More... | |
ECBehaviorPlayerInteractPrompt | getECBehavior () |
Behavior. More... | |
bool | getEnabled () |
Behavior is enabled showing interact prompts if an element is looked at. More... | |
ECBehaviorPlayerControllable.Instance | getPlayerControllable () |
Player controllable behavior. More... | |
ECBehaviorPlayerControllable | getPlayerControllable () |
Player controllable behavior. More... | |
PromptController | getPromptController () |
Prompt controller or null if not created. More... | |
PromptControllerFactory | getPromptControllerFactory () |
Prompt controller factory. More... | |
Array | getPromptsFrom (BehaviorElement element) |
Get prompts to shows as Array of ECBehaviorInteractPrompt.Instance. More... | |
float | getTransparency () |
Transparency. More... | |
ECPFloat | getTransparency () |
Transparency. More... | |
Container | getUIContainer () |
UI Container to add panel to. More... | |
Container | getUIContainer () |
UI Container to add panel to. More... | |
Object | getUIContainerAddSettings () |
Settings use to add prompt widget to UI Container. More... | |
bool | getVisibleIfEmpty () |
Show prompt widget if no prompts are present. More... | |
ECPBoolean | getVisibleIfEmpty () |
Show prompt widget if no prompts are present. More... | |
void | init (StubElement stub) |
Initialize element from stub. More... | |
Instance | new (BehaviorElementClass eclass, ECBehaviorPlayerControllable playerControllable, PromptControllerFactory promptControllerFactory, Container uiContainer, Object uiContainerAddSettings) |
Create behavior element class. More... | |
Instance | new (BehaviorElementClass eclass, ECBehaviorPlayerControllable playerControllable, PromptControllerFactory promptControllerFactory, Container uiContainer, Object uiContainerAddSettings, CommandManager commandManager, BindingManager bindingManager) |
Instance | new (BehaviorElementClass eclass, ECBehaviorPlayerControllable playerControllable, PromptControllerFactory promptControllerFactory, Container uiContainer, Object uiContainerAddSettings, CommandManager commandManager, BindingManager bindingManager, String prefix) |
Instance | new (BehaviorElementClass eclass, ECBehaviorPlayerControllable playerControllable, PromptControllerFactory promptControllerFactory, Container uiContainer, Object uiContainerAddSettings, String prefix) |
Instance | new (ECBehaviorPlayerInteractPrompt ecbehavior, BehaviorElement element) |
Create instance. More... | |
void | playerReleasesControl () |
Player released control. More... | |
void | playerTakesControl () |
Player takes control. More... | |
void | removeListener (Listener listener) |
Remove listener. More... | |
void | setBindingManager (BindingManager bindingManager) |
Set binding manager or null. More... | |
void | setCommandManager (CommandManager commandManager) |
Set command manager or null. More... | |
void | setEnabled (bool enabled) |
Set if behavior is enabled showing interact prompts if an element is looked at. More... | |
void | setPromptControllerFactory (PromptControllerFactory factory) |
Set prompt controller factory. More... | |
void | setTransparency (float transparency) |
Set transparency. More... | |
void | setUIContainer (Container container) |
Set UI container to add panel to. More... | |
void | setUIContainer (Container container) |
Set UI Container to add panel to. More... | |
void | setUIContainerAddSettings (Object settings) |
Set settings use to add prompt widget to UI Container. More... | |
void | setVisibleIfEmpty (bool visible) |
Set if prompt widget is visible if no prompts are present. More... | |
void | updatePrompts () |
Update prompts. 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... | |
void | think (float elapsed) |
Think about what to do for the next frame update. More... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Write behavior instance to file. More... | |
Static Public Member Functions | |
static ECBehaviorPlayerInteractPrompt | getBehaviorIn (BehaviorElementClass eclass) |
Get behavior in element class or null if absent. More... | |
Public Attributes | |
int | pBindingIconHeight |
ECPInteger | pBindingIconHeight |
BindingManager | pBindingManager |
CommandManager | pCommandManager |
ECBehaviorPlayerInteractPrompt | pECBehavior |
bool | pEnabled |
Array | pListenerFactories |
Array | pListeners |
ECBehaviorPlayerControllable.Instance | pPlayerControllable |
ECBehaviorPlayerControllable | pPlayerControllable |
PromptController | pPromptController |
PromptControllerFactory | pPromptControllerFactory |
float | pTransparency |
ECPFloat | pTransparency |
Container | pUIContainer |
Object | pUIContainerAddSettings |
bool | pVisibleIfEmpty |
ECPBoolean | pVisibleIfEmpty |
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... | |
Behavior instance.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.addListener | ( | Listener | listener | ) |
Add listener.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.addListenerFactory | ( | Block | blockFactory | ) |
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.addListenerFactory | ( | ListenerFactory | factory | ) |
Add listener factory.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.createListeners | ( | Instance | instance | ) |
Create listeners from factories adding them to behavior instance.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.dispose | ( | ) |
Dispose of instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.dispose | ( | ) |
Dispose of behavior.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.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 ECBehaviorPlayerInteractPrompt.
int Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getBindingIconHeight | ( | ) |
Binding icon height.
ECPInteger Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getBindingIconHeight | ( | ) |
Binding icon height.
BindingManager Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getBindingManager | ( | ) |
Binding manager or null.
CommandManager Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getCommandManager | ( | ) |
Command manager or null.
ECBehaviorPlayerInteractPrompt Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getECBehavior | ( | ) |
Behavior.
bool Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getEnabled | ( | ) |
Behavior is enabled showing interact prompts if an element is looked at.
ECBehaviorPlayerControllable.Instance Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getPlayerControllable | ( | ) |
Player controllable behavior.
ECBehaviorPlayerControllable Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getPlayerControllable | ( | ) |
Player controllable behavior.
PromptController Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getPromptController | ( | ) |
Prompt controller or null if not created.
PromptControllerFactory Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getPromptControllerFactory | ( | ) |
Prompt controller factory.
Array Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getPromptsFrom | ( | BehaviorElement | element | ) |
Get prompts to shows as Array of ECBehaviorInteractPrompt.Instance.
Default implementation gets all enabled instances.
float Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getTransparency | ( | ) |
Transparency.
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getTransparency | ( | ) |
Transparency.
Container Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getUIContainer | ( | ) |
UI Container to add panel to.
Container Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getUIContainer | ( | ) |
UI Container to add panel to.
Object Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getUIContainerAddSettings | ( | ) |
Settings use to add prompt widget to UI Container.
bool Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getVisibleIfEmpty | ( | ) |
Show prompt widget if no prompts are present.
ECPBoolean Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.getVisibleIfEmpty | ( | ) |
Show prompt widget if no prompts are present.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorPlayerControllable | playerControllable, | ||
PromptControllerFactory | promptControllerFactory, | ||
Container | uiContainer, | ||
Object | uiContainerAddSettings | ||
) |
Create behavior element class.
These parameters can be null:
Instance Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorPlayerControllable | playerControllable, | ||
PromptControllerFactory | promptControllerFactory, | ||
Container | uiContainer, | ||
Object | uiContainerAddSettings, | ||
CommandManager | commandManager, | ||
BindingManager | bindingManager | ||
) |
Instance Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorPlayerControllable | playerControllable, | ||
PromptControllerFactory | promptControllerFactory, | ||
Container | uiContainer, | ||
Object | uiContainerAddSettings, | ||
CommandManager | commandManager, | ||
BindingManager | bindingManager, | ||
String | prefix | ||
) |
Instance Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorPlayerControllable | playerControllable, | ||
PromptControllerFactory | promptControllerFactory, | ||
Container | uiContainer, | ||
Object | uiContainerAddSettings, | ||
String | prefix | ||
) |
Instance Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.new | ( | ECBehaviorPlayerInteractPrompt | ecbehavior, |
BehaviorElement | element | ||
) |
Create instance.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.playerReleasesControl | ( | ) |
Player released control.
Destroys prompt widget if created removing it from the UI container.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.playerTakesControl | ( | ) |
Player takes control.
Creates prompt widget if not created already and adds it to UI container.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.setBindingManager | ( | BindingManager | bindingManager | ) |
Set binding manager or null.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.setCommandManager | ( | CommandManager | commandManager | ) |
Set command manager or null.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.setEnabled | ( | bool | enabled | ) |
Set if behavior is enabled showing interact prompts if an element is looked at.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.setPromptControllerFactory | ( | PromptControllerFactory | factory | ) |
Set prompt controller factory.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.setTransparency | ( | float | transparency | ) |
Set transparency.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.setUIContainer | ( | Container | container | ) |
Set UI container to add panel to.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.setUIContainer | ( | Container | container | ) |
Set UI Container to add panel to.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.setUIContainerAddSettings | ( | Object | settings | ) |
Set settings use to add prompt widget to UI Container.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.setVisibleIfEmpty | ( | bool | visible | ) |
Set if prompt widget is visible if no prompts are present.
void Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.updatePrompts | ( | ) |
Update prompts.
int Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pBindingIconHeight |
ECPInteger Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pBindingIconHeight |
BindingManager Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pBindingManager |
CommandManager Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pCommandManager |
ECBehaviorPlayerInteractPrompt Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pECBehavior |
bool Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pEnabled |
Array Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pListenerFactories |
Array Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pListeners |
ECBehaviorPlayerControllable.Instance Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pPlayerControllable |
ECBehaviorPlayerControllable Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pPlayerControllable |
PromptController Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pPromptController |
PromptControllerFactory Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pPromptControllerFactory |
float Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pTransparency |
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pTransparency |
Container Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pUIContainer |
Object Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pUIContainerAddSettings |
bool Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pVisibleIfEmpty |
ECPBoolean Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance.pVisibleIfEmpty |