|
Drag[en]gine Script Module DragonScript 1.35
|
Debug ECBehaviorActorMover. More...
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. | |
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.
| float Dragengine.Debugging.DebugBehaviorActorMover.getBoxHalfExtends | ( | ) |
| Console Dragengine.Debugging.DebugBehaviorActorMover.getConsole | ( | ) |
Console to log to or null.
References pBehavior, and pWatchBehavior.
Referenced by onModifyMoveTowards().
|
protected |
| float Dragengine.Debugging.DebugBehaviorActorMover.getSphereRadius | ( | ) |
| DebugBehaviorActorMover Dragengine.Debugging.DebugBehaviorActorMover.new | ( | ECBehaviorActorMover.Instance | behavior | ) |
Create debug instance for behavior.
References pBoxHalfExtends, pDebugDrawer, pGameWorld, pSphereRadius, and pWatchBehavior.
Referenced by getBoxHalfExtends(), getSphereRadius(), onModifyMoveTowards(), setBoxHalfExtends(), and setSphereRadius().
| void Dragengine.Debugging.DebugBehaviorActorMover.onArrivedAtGoal | ( | DVector | goalPosition | ) |
Actor arrived at target.
| void Dragengine.Debugging.DebugBehaviorActorMover.onModifyMoveTowards | ( | DVector | position, |
| float | elapsed ) |
Modify move towards.
References getConsole(), getDebugDrawer(), new(), pBehavior, pConsole, pDebugDrawer, pSphereRadius, setConsole(), setSphereRadius(), setXRay(), and updateShapeMoveTowards().
| void Dragengine.Debugging.DebugBehaviorActorMover.onStartMoving | ( | ) |
Actor starts moving.
References pBoxHalfExtends.
Referenced by Dragengine.Debugging.DebugBehaviorActorMover.WatchBehavior.stopMoving().
| void Dragengine.Debugging.DebugBehaviorActorMover.onStopMoving | ( | ) |
Actor stops moving.
References getSphereRadius(), and pSphereRadius.
Referenced by Dragengine.Debugging.DebugBehaviorActorMover.WatchBehavior.modifyMoveTowards().
| void Dragengine.Debugging.DebugBehaviorActorMover.removeFromBehavior | ( | ) |
| void Dragengine.Debugging.DebugBehaviorActorMover.setBoxHalfExtends | ( | float | halfExtends | ) |
| void Dragengine.Debugging.DebugBehaviorActorMover.setConsole | ( | Console | console | ) |
Set console to log to or null.
References getBoxHalfExtends().
Referenced by onModifyMoveTowards().
| void Dragengine.Debugging.DebugBehaviorActorMover.setSphereRadius | ( | float | radius | ) |
Set sphere radius.
References new(), pDebugDrawer, and setXRay().
Referenced by onModifyMoveTowards().
| void Dragengine.Debugging.DebugBehaviorActorMover.setXRay | ( | bool | xray | ) |
Set XRay mode.
References removeFromBehavior().
Referenced by onModifyMoveTowards(), and setSphereRadius().
|
protected |
Update move towards debug drawer shape.
References pBoxHalfExtends, and setBoxHalfExtends().
Referenced by onModifyMoveTowards().
| ECBehaviorActorMover.Instance Dragengine.Debugging.DebugBehaviorActorMover.pBehavior |
Referenced by getConsole(), onModifyMoveTowards(), and setBoxHalfExtends().
| float Dragengine.Debugging.DebugBehaviorActorMover.pBoxHalfExtends |
Referenced by getBoxHalfExtends(), new(), onStartMoving(), and updateShapeMoveTowards().
| Console Dragengine.Debugging.DebugBehaviorActorMover.pConsole |
Referenced by onModifyMoveTowards(), and removeFromBehavior().
| DebugDrawer Dragengine.Debugging.DebugBehaviorActorMover.pDebugDrawer |
Referenced by getDebugDrawer(), new(), onModifyMoveTowards(), and setSphereRadius().
| float Dragengine.Debugging.DebugBehaviorActorMover.pSphereRadius |
Referenced by getBoxHalfExtends(), new(), onModifyMoveTowards(), and onStopMoving().
| WeakReference Dragengine.Debugging.DebugBehaviorActorMover.pWatchBehavior |
Referenced by getConsole(), getSphereRadius(), and new().