|
Drag[en]gine Script Module DragonScript 1.32.1
|
Behavior instance. More...
Public Member Functions | |
| void | addListenerFactory (Block blockFactory) |
| Add listener factory using block. | |
| void | addListenerFactory (ListenerFactory factory) |
| Add listener factory. | |
| void | addToGameWorld () |
| Add element to game world. | |
| void | createListeners (Instance instance) |
| Create listeners from factories adding them to behavior instance. | |
| void | dispose () |
| Dispose of behavior instance. | |
| void | dispose () |
| Dispose of behavior. | |
| Element | findTouchingElement (Block ablock) |
| Find touching elements with block with parameter Element. | |
| Element | findTouchingElementCastable (Block ablock) |
| Find touching elements castable to block parameter. | |
| void | forEachListenerFactory (Block ablock) |
| Visit listener factories with block with argument ListenerFactory. | |
| void | forEachTouchingElement (Block ablock) |
| Visit touching elements with block with parameter Element. | |
| void | forEachTouchingElementCastable (Block ablock) |
| Visit touching elements castable to block parameter. | |
| ECComposeAttachResource | getAttach () |
| Attach resource. | |
| ECComposeBTSM | getBTSMs () |
| Compose behavior trees and state machines. | |
| ECBehaviorCollider.Instance | getCollider () |
| Collider behavior instance or null if not used. | |
| ECBehaviorCollider | getCollider () |
| Collider behavior or null if not used. | |
| ECComposeCollisionFilter | getCollisionFilter () |
| Collision filter. | |
| ECBehaviorTouchSensor | getECBehavior () |
| Behavior. | |
| BehaviorElement | getPlayerTouching () |
| Check if player is touching. | |
| String | getPrefix () |
| Prefix. | |
| ECPShapeList | getShape () |
| Touch shape. | |
| ECPBoolean | getShapeFromSize () |
| Use stub element scaling as touch sensor shape. | |
| bool | getTouching () |
| Touch sensor is sensing touches. | |
| ECPBoolean | getTouching () |
| Touch sensor is initially touching. | |
| Element | getTouchingElementAt (int index) |
| Touching element at index. | |
| int | getTouchingElementCount () |
| Number of touching elements. | |
| TouchSensor | getTouchSensor () |
| Touch sensor. | |
| void | init (StubElement stub) |
| Initialize element from stub. | |
| bool | isElementTouching (Element element) |
| Element is touching. | |
| Instance | new (BehaviorElementClass eclass, ECBehaviorCollider collider, String id) |
| Instance | new (BehaviorElementClass eclass, ECBehaviorCollider collider, String id, String prefix) |
| Instance | new (ECBehaviorTouchSensor ecbehavior, BehaviorElement element) |
| Create element. | |
| void | removeFromGameWorld () |
| Remove element from game world. | |
| void | removeListener (Listener listener) |
| Remove listener. | |
| void | setTouching (bool touching) |
| Set if touch sensor is sensing touches. | |
| void | visitTouchingElements (ElementVisitor visitor) |
| Visit touching elements with ElementVisitor. | |
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. | |
| 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 | readFromFile (PersistencyEnvironment env, FileReader reader) |
| Read behavior instance from file. | |
| bool | requiresEnterFrame () |
| Behavior instance requires enterFrame() to be called. | |
| bool | requiresThink () |
| Behavior instance requires think() to be called. | |
| void | stateChanged () |
| State changed (visble, touchable). | |
| void | think (float elapsed) |
| Think about what to do for the next frame update. | |
| void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
| Write behavior instance to file. | |
Public Member Functions inherited from Dragengine.Scenery.TouchSensorListener | |
| void | colliderEntered (Collider collider) |
| Collider entered shape. | |
| void | colliderLeft (Collider collider) |
| Collider left shape. | |
Static Public Member Functions | |
| static ECBehaviorTouchSensor | getBehaviorIn (BehaviorElementClass eclass) |
| Get behavior in element class or null if absent. | |
Public Attributes | |
| ECComposeBTSM.Instance | pBTSMs |
| ECBehaviorCollider.Instance | pCollider |
| ECBehaviorTouchSensor | pECBehavior |
| Array | pListeners |
| Array | pTouchingElements |
| TouchSensor | pTouchSensor |
| Array | pTrackedElements |
Public Attributes inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
| BehaviorElement | pElement |
| int | pInstanceIndex |
| bool | pRequiresEnterFrame |
| bool | pRequiresThink |
Protected Member Functions | |
| void | addTouchingElement (Collider collider, Element element) |
| Add touching element. | |
| void | addTouchingElement (Element element) |
| void | attachTouchSensor (StubElement stub, ECBehaviorCollider.Instance collider) |
| Attach touch sensor to collider. | |
| TouchSensor | createTouchSensor (StubElement stub) |
| Create touch sensor. | |
| void | removeTouchingElement (Element element) |
| Remove touching element. | |
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.
| void Dragengine.Scenery.ECBehaviorTouchSensor.Instance.addListenerFactory | ( | Block | blockFactory | ) |
Add listener factory using block.
Block receives as parameter Instance and returns Listener.
| void Dragengine.Scenery.ECBehaviorTouchSensor.Instance.addListenerFactory | ( | ListenerFactory | factory | ) |
Add listener factory.
| void Dragengine.Scenery.ECBehaviorTouchSensor.Instance.addToGameWorld | ( | ) |
Add element to game world.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
|
protected |
Add touching element.
|
protected |
|
protected |
Attach touch sensor to collider.
Default implementation calls ECComposeAttachResource.attach().
| void Dragengine.Scenery.ECBehaviorTouchSensor.Instance.createListeners | ( | Instance | instance | ) |
Create listeners from factories adding them to behavior instance.
|
protected |
Create touch sensor.
| void Dragengine.Scenery.ECBehaviorTouchSensor.Instance.dispose | ( | ) |
Dispose of behavior instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
| void Dragengine.Scenery.ECBehaviorTouchSensor.Instance.dispose | ( | ) |
Dispose of behavior.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
| Element Dragengine.Scenery.ECBehaviorTouchSensor.Instance.findTouchingElement | ( | Block | ablock | ) |
Find touching elements with block with parameter Element.
| Element Dragengine.Scenery.ECBehaviorTouchSensor.Instance.findTouchingElementCastable | ( | Block | ablock | ) |
Find touching elements castable to block parameter.
| void Dragengine.Scenery.ECBehaviorTouchSensor.Instance.forEachListenerFactory | ( | Block | ablock | ) |
Visit listener factories with block with argument ListenerFactory.
| void Dragengine.Scenery.ECBehaviorTouchSensor.Instance.forEachTouchingElement | ( | Block | ablock | ) |
Visit touching elements with block with parameter Element.
| void Dragengine.Scenery.ECBehaviorTouchSensor.Instance.forEachTouchingElementCastable | ( | Block | ablock | ) |
Visit touching elements castable to block parameter.
| ECComposeAttachResource Dragengine.Scenery.ECBehaviorTouchSensor.Instance.getAttach | ( | ) |
Attach resource.
|
static |
Get behavior in element class or null if absent.
Use this method to check if a particular BehaviorElementClass contains a behavior of type ECBehaviorCollider.
| ECComposeBTSM Dragengine.Scenery.ECBehaviorTouchSensor.Instance.getBTSMs | ( | ) |
Compose behavior trees and state machines.
| ECBehaviorCollider.Instance Dragengine.Scenery.ECBehaviorTouchSensor.Instance.getCollider | ( | ) |
Collider behavior instance or null if not used.
| ECBehaviorCollider Dragengine.Scenery.ECBehaviorTouchSensor.Instance.getCollider | ( | ) |
Collider behavior or null if not used.
| ECComposeCollisionFilter Dragengine.Scenery.ECBehaviorTouchSensor.Instance.getCollisionFilter | ( | ) |
Collision filter.
| ECBehaviorTouchSensor Dragengine.Scenery.ECBehaviorTouchSensor.Instance.getECBehavior | ( | ) |
Behavior.
| BehaviorElement Dragengine.Scenery.ECBehaviorTouchSensor.Instance.getPlayerTouching | ( | ) |
Check if player is touching.
Checks each element in the list of touching elements if it has ECBehaviorPlayerControllable and it is the active player actor. If found returns the player actor. If not found null is returned.
| String Dragengine.Scenery.ECBehaviorTouchSensor.Instance.getPrefix | ( | ) |
Prefix.
| ECPShapeList Dragengine.Scenery.ECBehaviorTouchSensor.Instance.getShape | ( | ) |
Touch shape.
| ECPBoolean Dragengine.Scenery.ECBehaviorTouchSensor.Instance.getShapeFromSize | ( | ) |
Use stub element scaling as touch sensor shape.
| bool Dragengine.Scenery.ECBehaviorTouchSensor.Instance.getTouching | ( | ) |
Touch sensor is sensing touches.
| ECPBoolean Dragengine.Scenery.ECBehaviorTouchSensor.Instance.getTouching | ( | ) |
Touch sensor is initially touching.
| Element Dragengine.Scenery.ECBehaviorTouchSensor.Instance.getTouchingElementAt | ( | int | index | ) |
Touching element at index.
| int Dragengine.Scenery.ECBehaviorTouchSensor.Instance.getTouchingElementCount | ( | ) |
Number of touching elements.
| TouchSensor Dragengine.Scenery.ECBehaviorTouchSensor.Instance.getTouchSensor | ( | ) |
Touch sensor.
| void Dragengine.Scenery.ECBehaviorTouchSensor.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
| bool Dragengine.Scenery.ECBehaviorTouchSensor.Instance.isElementTouching | ( | Element | element | ) |
Element is touching.
| Instance Dragengine.Scenery.ECBehaviorTouchSensor.Instance.new | ( | BehaviorElementClass | eclass, |
| ECBehaviorCollider | collider, | ||
| String | id | ||
| ) |
| Instance Dragengine.Scenery.ECBehaviorTouchSensor.Instance.new | ( | BehaviorElementClass | eclass, |
| ECBehaviorCollider | collider, | ||
| String | id, | ||
| String | prefix | ||
| ) |
| Instance Dragengine.Scenery.ECBehaviorTouchSensor.Instance.new | ( | ECBehaviorTouchSensor | ecbehavior, |
| BehaviorElement | element | ||
| ) |
Create element.
| void Dragengine.Scenery.ECBehaviorTouchSensor.Instance.removeFromGameWorld | ( | ) |
Remove element from game world.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
| void Dragengine.Scenery.ECBehaviorTouchSensor.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
|
protected |
Remove touching element.
| void Dragengine.Scenery.ECBehaviorTouchSensor.Instance.setTouching | ( | bool | touching | ) |
Set if touch sensor is sensing touches.
| void Dragengine.Scenery.ECBehaviorTouchSensor.Instance.visitTouchingElements | ( | ElementVisitor | visitor | ) |
Visit touching elements with ElementVisitor.
| ECComposeBTSM.Instance Dragengine.Scenery.ECBehaviorTouchSensor.Instance.pBTSMs |
| ECBehaviorCollider.Instance Dragengine.Scenery.ECBehaviorTouchSensor.Instance.pCollider |
| ECBehaviorTouchSensor Dragengine.Scenery.ECBehaviorTouchSensor.Instance.pECBehavior |
| Array Dragengine.Scenery.ECBehaviorTouchSensor.Instance.pListeners |
| Array Dragengine.Scenery.ECBehaviorTouchSensor.Instance.pTouchingElements |
| TouchSensor Dragengine.Scenery.ECBehaviorTouchSensor.Instance.pTouchSensor |
| Array Dragengine.Scenery.ECBehaviorTouchSensor.Instance.pTrackedElements |