#include <objectcontroller.h>


Public Member Functions | |
| cObjectController () | |
| virtual | ~cObjectController () |
| void | SetTarget (cObjectContollerTarget *pTarget) |
| void | Lock () |
| miControlledObjectCount++ | |
| void | Release () |
| miControlledObjectCount-- | |
| void | Step (cObject *pObj) |
Static Public Member Functions | |
| static void | LuaRegister (lua_State *L) |
| lua binding | |
Public Attributes | |
| cObjectContollerTarget * | mpApproachTarget |
| float | mfApproachMinDist |
| float | mfMaxAccel |
| float | mfMaxSpeed |
| bool | mbStupid |
Private Attributes | |
| int | miControlledObjectCount |
| mainly for debugging | |
Definition at line 52 of file objectcontroller.h.
| cObjectController::cObjectController | ( | ) |
Definition at line 35 of file objectcontroller.cpp.
| cObjectController::~cObjectController | ( | ) | [virtual] |
Definition at line 37 of file objectcontroller.cpp.
References assert, miControlledObjectCount, and mpApproachTarget.
| void cObjectController::SetTarget | ( | cObjectContollerTarget * | pTarget | ) |
Definition at line 46 of file objectcontroller.cpp.
References mpApproachTarget, and PROFILE.
Referenced by cObjectController_L::SetApproachObject(), and cObjectController_L::SetApproachPosition().
| void cObjectController::Lock | ( | ) |
miControlledObjectCount++
Definition at line 43 of file objectcontroller.cpp.
References miControlledObjectCount.
Referenced by cObject::SetController().
| void cObjectController::Release | ( | ) |
miControlledObjectCount--
Definition at line 44 of file objectcontroller.cpp.
References assert, and miControlledObjectCount.
Referenced by cObject::SetController().
| void cObjectController::Step | ( | cObject * | pObj | ) |
Definition at line 51 of file objectcontroller.cpp.
References cObjectContollerTarget::GetPosition(), cObjectContollerTarget::GetVelocity(), cObjectContollerTarget::IsAlive(), mbStupid, mfApproachMinDist, mfMaxAccel, mpApproachTarget, cObject::mvAccel, cObject::mvPos, and cObject::mvVel.
Referenced by cObject::Step().
| void cObjectController::LuaRegister | ( | lua_State * | L | ) | [static] |
lua binding
Definition at line 127 of file objectcontroller_L.cpp.
References PROFILE.
Referenced by SFZ_RegisterLuaPlugin().
Definition at line 53 of file objectcontroller.h.
Referenced by SetTarget(), Step(), and ~cObjectController().
Definition at line 56 of file objectcontroller.h.
int cObjectController::miControlledObjectCount [private] |
mainly for debugging
Definition at line 74 of file objectcontroller.h.
Referenced by Lock(), Release(), and ~cObjectController().
1.5.6