Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Debugging.DebugBehaviorActorMover Class Reference

Debug ECBehaviorActorMover. More...

Inheritance diagram for Dragengine.Debugging.DebugBehaviorActorMover:

Classes

class  WatchBehavior
 Watch behavior listener. More...

Public Member Functions

float getBoxHalfExtends ()
 Box half-extends.
Console getConsole ()
 Console to log to or null.
float getSphereRadius ()
 Sphere radius.
DebugBehaviorActorMover new (ECBehaviorActorMover.Instance behavior)
 Create debug instance for behavior.
void onArrivedAtGoal (DVector goalPosition)
 Actor arrived at target.
void onModifyMoveTowards (DVector position, float elapsed)
 Modify move towards.
void onStartMoving ()
 Actor starts moving.
void onStopMoving ()
 Actor stops moving.
void removeFromBehavior ()
 Remove from behavior.
void setBoxHalfExtends (float halfExtends)
 Set box half-extends.
void setConsole (Console console)
 Set console to log to or null.
void setSphereRadius (float radius)
 Set sphere radius.
void setXRay (bool xray)
 Set XRay mode.

Public Attributes

ECBehaviorActorMover.Instance pBehavior
float pBoxHalfExtends
Console pConsole
DebugDrawer pDebugDrawer
GameWorld pGameWorld
float pSphereRadius
WeakReference pWatchBehavior

Protected Member Functions

DebugDrawer getDebugDrawer ()
 Debug drawer.
void updateShapeMoveTowards (DVector position)
 Update move towards debug drawer shape.

Detailed Description

Debug ECBehaviorActorMover.

To use create an instance of DebugBehaviorActorMover with the behavior to attach to. Attaches a listener to the behavior and visualizes the behavior state. Different information can be visualized individually. The debug instance stays active as long as the behavior exists.

Member Function Documentation

◆ getBoxHalfExtends()

float Dragengine.Debugging.DebugBehaviorActorMover.getBoxHalfExtends ( )

Box half-extends.

References new(), pBoxHalfExtends, and pSphereRadius.

Referenced by setConsole().

◆ getConsole()

Console Dragengine.Debugging.DebugBehaviorActorMover.getConsole ( )

Console to log to or null.

Version
1.24

References pBehavior, and pWatchBehavior.

Referenced by onModifyMoveTowards().

◆ getDebugDrawer()

DebugDrawer Dragengine.Debugging.DebugBehaviorActorMover.getDebugDrawer ( )
protected

Debug drawer.

References pDebugDrawer.

Referenced by onModifyMoveTowards().

◆ getSphereRadius()

float Dragengine.Debugging.DebugBehaviorActorMover.getSphereRadius ( )

Sphere radius.

References new(), and pWatchBehavior.

Referenced by onStopMoving().

◆ new()

DebugBehaviorActorMover Dragengine.Debugging.DebugBehaviorActorMover.new ( ECBehaviorActorMover.Instance behavior)

◆ onArrivedAtGoal()

void Dragengine.Debugging.DebugBehaviorActorMover.onArrivedAtGoal ( DVector goalPosition)

Actor arrived at target.

◆ onModifyMoveTowards()

void Dragengine.Debugging.DebugBehaviorActorMover.onModifyMoveTowards ( DVector position,
float elapsed )

◆ onStartMoving()

void Dragengine.Debugging.DebugBehaviorActorMover.onStartMoving ( )

◆ onStopMoving()

void Dragengine.Debugging.DebugBehaviorActorMover.onStopMoving ( )

◆ removeFromBehavior()

void Dragengine.Debugging.DebugBehaviorActorMover.removeFromBehavior ( )

Remove from behavior.

References pConsole.

Referenced by setXRay().

◆ setBoxHalfExtends()

void Dragengine.Debugging.DebugBehaviorActorMover.setBoxHalfExtends ( float halfExtends)

Set box half-extends.

References new(), and pBehavior.

Referenced by updateShapeMoveTowards().

◆ setConsole()

void Dragengine.Debugging.DebugBehaviorActorMover.setConsole ( Console console)

Set console to log to or null.

Version
1.24

References getBoxHalfExtends().

Referenced by onModifyMoveTowards().

◆ setSphereRadius()

void Dragengine.Debugging.DebugBehaviorActorMover.setSphereRadius ( float radius)

Set sphere radius.

References new(), pDebugDrawer, and setXRay().

Referenced by onModifyMoveTowards().

◆ setXRay()

void Dragengine.Debugging.DebugBehaviorActorMover.setXRay ( bool xray)

Set XRay mode.

References removeFromBehavior().

Referenced by onModifyMoveTowards(), and setSphereRadius().

◆ updateShapeMoveTowards()

void Dragengine.Debugging.DebugBehaviorActorMover.updateShapeMoveTowards ( DVector position)
protected

Update move towards debug drawer shape.

References pBoxHalfExtends, and setBoxHalfExtends().

Referenced by onModifyMoveTowards().

Member Data Documentation

◆ pBehavior

ECBehaviorActorMover.Instance Dragengine.Debugging.DebugBehaviorActorMover.pBehavior

◆ pBoxHalfExtends

float Dragengine.Debugging.DebugBehaviorActorMover.pBoxHalfExtends

◆ pConsole

Console Dragengine.Debugging.DebugBehaviorActorMover.pConsole

◆ pDebugDrawer

DebugDrawer Dragengine.Debugging.DebugBehaviorActorMover.pDebugDrawer

◆ pGameWorld

GameWorld Dragengine.Debugging.DebugBehaviorActorMover.pGameWorld

Referenced by new().

◆ pSphereRadius

float Dragengine.Debugging.DebugBehaviorActorMover.pSphereRadius

◆ pWatchBehavior

WeakReference Dragengine.Debugging.DebugBehaviorActorMover.pWatchBehavior

Referenced by getConsole(), getSphereRadius(), and new().


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