Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
Public Member Functions | |
ECBehaviorAvoidedByActor | getECBehavior () |
Behavior. More... | |
bool | getEnabled () |
Behavior is enabled. More... | |
float | getOrientation () |
Orientation in degrees of shape along Y-Axis. More... | |
Vector | getOrigin () |
Origin of shape relative to owner element. More... | |
float | getRadius () |
Border radius of shape. More... | |
Vector2 | getSize () |
Size of shape. More... | |
bool | hasShape () |
Has shape defined. More... | |
void | init (StubElement stub) |
Initialize behavior element from stub. More... | |
Instance | new (ECBehaviorAvoidedByActor ecbehavior, BehaviorElement element) |
Create behavior instance. More... | |
void | setEnabled (bool enabled) |
Set if behavior is enabled. More... | |
bool | shouldBeAvoided () |
Should be avoided by actors. 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 | dispose () |
Dispose of behavior instance. 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... | |
Public Attributes | |
ECBehaviorAvoidedByActor | pECBehavior |
bool | pEnabled |
bool | pHasShape |
float | pOrientation |
Vector | pOrigin |
float | pRadius |
Vector2 | pSize |
Protected Member Functions | |
void | setOrientation (float orientation) |
Set orientation in degrees of shape along Y-Axis. More... | |
void | setOrigin (Vector origin) |
Set origin of shape relative to owner element. More... | |
void | setRadius (float radius) |
Set border radius of shape. More... | |
void | setSize (Vector2 size) |
Set size of shape. 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.
ECBehaviorAvoidedByActor Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.getECBehavior | ( | ) |
Behavior.
bool Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.getEnabled | ( | ) |
Behavior is enabled.
float Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.getOrientation | ( | ) |
Orientation in degrees of shape along Y-Axis.
Vector Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.getOrigin | ( | ) |
Origin of shape relative to owner element.
float Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.getRadius | ( | ) |
Border radius of shape.
Vector2 Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.getSize | ( | ) |
Size of shape.
bool Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.hasShape | ( | ) |
Has shape defined.
void Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.init | ( | StubElement | stub | ) |
Initialize behavior element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.new | ( | ECBehaviorAvoidedByActor | ecbehavior, |
BehaviorElement | element | ||
) |
Create behavior instance.
void Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.setEnabled | ( | bool | enabled | ) |
Set if behavior is enabled.
|
protected |
Set orientation in degrees of shape along Y-Axis.
|
protected |
Set origin of shape relative to owner element.
|
protected |
Set border radius of shape.
|
protected |
Set size of shape.
bool Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.shouldBeAvoided | ( | ) |
Should be avoided by actors.
ECBehaviorAvoidedByActor Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.pECBehavior |
bool Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.pEnabled |
bool Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.pHasShape |
float Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.pOrientation |
Vector Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.pOrigin |
float Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.pRadius |
Vector2 Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.pSize |