Blender V2.61 - r43446
Public Types | Public Member Functions | Static Public Member Functions

KX_SteeringActuator Class Reference

#include <KX_SteeringActuator.h>

Inheritance diagram for KX_SteeringActuator:
Inheritance graph
[legend]

List of all members.

Public Types

enum  KX_STEERINGACT_MODE {
  KX_STEERING_NODEF = 0, KX_STEERING_SEEK, KX_STEERING_FLEE, KX_STEERING_PATHFOLLOWING,
  KX_STEERING_MAX
}

Public Member Functions

 KX_SteeringActuator (class SCA_IObject *gameobj, int mode, KX_GameObject *target, KX_GameObject *navmesh, float distance, float velocity, float acceleration, float turnspeed, bool isSelfTerminated, int pathUpdatePeriod, KX_ObstacleSimulation *simulation, short facingmode, bool normalup, bool enableVisualization)
virtual ~KX_SteeringActuator ()
virtual bool Update (double curtime, bool frame)
virtual CValueGetReplica ()
virtual void ProcessReplica ()
virtual void Relink (CTR_Map< CTR_HashedPtr, void * > *obj_map)
virtual bool UnlinkObject (SCA_IObject *clientobj)
const MT_Vector3GetSteeringVec ()

Static Public Member Functions

static PyObject * pyattr_get_target (void *self, const struct KX_PYATTRIBUTE_DEF *attrdef)
static int pyattr_set_target (void *self, const struct KX_PYATTRIBUTE_DEF *attrdef, PyObject *value)
static PyObject * pyattr_get_navmesh (void *self, const struct KX_PYATTRIBUTE_DEF *attrdef)
static int pyattr_set_navmesh (void *self, const struct KX_PYATTRIBUTE_DEF *attrdef, PyObject *value)
static PyObject * pyattr_get_steeringVec (void *self, const struct KX_PYATTRIBUTE_DEF *attrdef)

Detailed Description

Definition at line 40 of file KX_SteeringActuator.h.


Member Enumeration Documentation

Enumerator:
KX_STEERING_NODEF 
KX_STEERING_SEEK 
KX_STEERING_FLEE 
KX_STEERING_PATHFOLLOWING 
KX_STEERING_MAX 

Definition at line 70 of file KX_SteeringActuator.h.


Constructor & Destructor Documentation

KX_SteeringActuator::KX_SteeringActuator ( class SCA_IObject gameobj,
int  mode,
KX_GameObject target,
KX_GameObject navmesh,
float  distance,
float  velocity,
float  acceleration,
float  turnspeed,
bool  isSelfTerminated,
int  pathUpdatePeriod,
KX_ObstacleSimulation simulation,
short  facingmode,
bool  normalup,
bool  enableVisualization 
)
KX_SteeringActuator::~KX_SteeringActuator ( ) [virtual]

Definition at line 95 of file KX_SteeringActuator.cpp.

References SCA_IObject::UnregisterActuator().


Member Function Documentation

CValue * KX_SteeringActuator::GetReplica ( void  ) [virtual]

Implements CValue.

Definition at line 103 of file KX_SteeringActuator.cpp.

References KX_SteeringActuator(), and ProcessReplica().

const MT_Vector3 & KX_SteeringActuator::GetSteeringVec ( )

Definition at line 308 of file KX_SteeringActuator.cpp.

Referenced by pyattr_get_steeringVec().

void KX_SteeringActuator::ProcessReplica ( ) [virtual]

Makes sure any internal data owned by this class is deep copied.

Reimplemented from SCA_IActuator.

Definition at line 111 of file KX_SteeringActuator.cpp.

References SCA_IObject::RegisterActuator().

Referenced by GetReplica().

PyObject * KX_SteeringActuator::pyattr_get_navmesh ( void *  self,
const struct KX_PYATTRIBUTE_DEF *  attrdef 
) [static]

Definition at line 582 of file KX_SteeringActuator.cpp.

PyObject * KX_SteeringActuator::pyattr_get_steeringVec ( void *  self,
const struct KX_PYATTRIBUTE_DEF *  attrdef 
) [static]

Definition at line 616 of file KX_SteeringActuator.cpp.

References GetSteeringVec().

PyObject * KX_SteeringActuator::pyattr_get_target ( void *  self,
const struct KX_PYATTRIBUTE_DEF *  attrdef 
) [static]

Definition at line 554 of file KX_SteeringActuator.cpp.

int KX_SteeringActuator::pyattr_set_navmesh ( void *  self,
const struct KX_PYATTRIBUTE_DEF *  attrdef,
PyObject *  value 
) [static]
int KX_SteeringActuator::pyattr_set_target ( void *  self,
const struct KX_PYATTRIBUTE_DEF *  attrdef,
PyObject *  value 
) [static]
void KX_SteeringActuator::Relink ( CTR_Map< CTR_HashedPtr, void * > *  obj_map) [virtual]

Reimplemented from SCA_ILogicBrick.

Definition at line 136 of file KX_SteeringActuator.cpp.

References SCA_IObject::RegisterActuator(), and SCA_IObject::UnregisterActuator().

bool KX_SteeringActuator::UnlinkObject ( SCA_IObject clientobj) [virtual]

UnlinkObject(...) Certain actuator use gameobject pointers (like TractTo actuator) This function can be called when an object is removed to make sure that the actuator will not use it anymore.

Reimplemented from SCA_IActuator.

Definition at line 121 of file KX_SteeringActuator.cpp.

References NULL.

bool KX_SteeringActuator::Update ( double  curtime,
bool  frame 
) [virtual]

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