Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance Class Reference

Behavior instance. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance:
Dragengine.Scenery.DefaultECBehaviorInstance Dragengine.Scenery.ECBehaviorInstance

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...
 

Detailed Description

Behavior instance.

Member Function Documentation

◆ getECBehavior()

ECBehaviorAvoidedByActor Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.getECBehavior ( )

Behavior.

◆ getEnabled()

bool Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.getEnabled ( )

Behavior is enabled.

◆ getOrientation()

float Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.getOrientation ( )

Orientation in degrees of shape along Y-Axis.

◆ getOrigin()

Vector Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.getOrigin ( )

Origin of shape relative to owner element.

◆ getRadius()

float Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.getRadius ( )

Border radius of shape.

◆ getSize()

Vector2 Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.getSize ( )

Size of shape.

◆ hasShape()

bool Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.hasShape ( )

Has shape defined.

Returns
true if radius or size are not 0.

◆ init()

void Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.init ( StubElement  stub)

Initialize behavior element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ new()

Instance Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.new ( ECBehaviorAvoidedByActor  ecbehavior,
BehaviorElement  element 
)

Create behavior instance.

◆ setEnabled()

void Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.setEnabled ( bool  enabled)

Set if behavior is enabled.

◆ setOrientation()

void Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.setOrientation ( float  orientation)
protected

Set orientation in degrees of shape along Y-Axis.

◆ setOrigin()

void Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.setOrigin ( Vector  origin)
protected

Set origin of shape relative to owner element.

◆ setRadius()

void Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.setRadius ( float  radius)
protected

Set border radius of shape.

◆ setSize()

void Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.setSize ( Vector2  size)
protected

Set size of shape.

◆ shouldBeAvoided()

bool Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.shouldBeAvoided ( )

Should be avoided by actors.

Returns
true if hasShape() and getEnabled() are true.

Member Data Documentation

◆ pECBehavior

ECBehaviorAvoidedByActor Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.pECBehavior

◆ pEnabled

bool Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.pEnabled

◆ pHasShape

bool Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.pHasShape

◆ pOrientation

float Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.pOrientation

◆ pOrigin

Vector Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.pOrigin

◆ pRadius

float Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.pRadius

◆ pSize

Vector2 Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance.pSize

The documentation for this class was generated from the following file: