Logo Search packages:      
Sourcecode: blender version File versions

KX_GameObject Class Reference

#include <KX_GameObject.h>

Inheritance diagram for KX_GameObject:

BL_DeformableGameObject KX_Camera::KX_Camera KX_EmptyObject KX_LightObject

List of all members.


Detailed Description

KX_GameObject is the main class for dynamic objects.

Definition at line 65 of file KX_GameObject.h.


Public Types

enum  AllocationTYPE { STACKVALUE = 0, HEAPVALUE = 1 }
enum  DrawTYPE { STARTFRAME = 0, ENDFRAME = 1, INTERFRAME = 2 }

Public Member Functions

virtual int _delattr (const STR_String &attr)
virtual PyObject * _getattr (const STR_String &attr)
virtual PyObject * _repr (void)
virtual int _setattr (const STR_String &attr, PyObject *value)
void AddActuator (SCA_IActuator *act)
void AddController (SCA_IController *act)
void addLinearVelocity (const MT_Vector3 &lin_vel, bool local)
void AddMesh (RAS_MeshObject *mesh)
CValue * AddRef ()
void AddSensor (SCA_ISensor *act)
void ApplyForce (const MT_Vector3 &force, bool local)
void ApplyMovement (const MT_Vector3 &dloc, bool local)
void ApplyRotation (const MT_Vector3 &drot, bool local)
void ApplyTorque (const MT_Vector3 &torque, bool local)
void Bucketize ()
CValue * Calc (VALUE_OPERATOR op, CValue *val)
CValue * CalcFinal (VALUE_DATA_TYPE dtype, VALUE_OPERATOR op, CValue *val)
virtual void ClearProperties ()
virtual void CloneProperties (CValue *replica)
virtual CValue * ConvertPythonToValue (PyObject *pyobj)
virtual PyObject * ConvertValueToPython ()
void Execute (const CAction &a)
SCA_IActuatorFindActuator (const STR_String &actuatorname)
SCA_IControllerFindController (const STR_String &controllername)
virtual CValue * FindIdentifier (const STR_String &identifiername)
SCA_ISensorFindSensor (const STR_String &sensorname)
SCA_ActuatorList & GetActuators ()
KX_ClientObjectInfogetClientInfo ()
SCA_ControllerList & GetControllers ()
bool GetIgnoreActivityCulling ()
MT_Vector3 GetLinearVelocity ()
RAS_MeshObjectGetMesh (int num) const
int GetMeshCount () const
STR_String GetName ()
float GetNumber ()
double * GetOpenGLMatrix ()
MT_CmMatrix4x4 * GetOpenGLMatrixPtr ()
KX_GameObjectGetParent ()
KX_IPhysicsControllerGetPhysicsController ()
virtual CValue * GetProperty (int inIndex)
virtual CValue * GetProperty (const STR_String &inName)
virtual int GetPropertyCount ()
float GetPropertyNumber (const STR_String &inName, float defnumber)
STR_String GetPropertyText (const STR_String &inName, const STR_String &deftext="")
int GetRefCount ()
 Reference Counting.
virtual CValue * GetReplica ()
SCA_SensorList & GetSensors ()
const SG_NodeGetSGNode () const
SG_NodeGetSGNode ()
const STR_StringGetText ()
virtual double * GetVector3 (bool bGetTransformedVec=false)
bool GetVisible (void)
bool isA (const char *mytypename)
bool isA (PyTypeObject *T)
virtual bool IsAffected ()
virtual bool IsAnyPropertyModified ()
virtual bool IsCustomFlag1 ()
virtual bool IsCustomFlag2 ()
bool IsDynamic () const
bool IsError ()
virtual bool IsModified ()
bool IsReleaseRequested ()
virtual bool IsSelected ()
virtual bool IsVisible ()
 KX_GameObject (void *sgReplicationInfo, SG_Callbacks callbacks, PyTypeObject *T=&Type)
 KX_PYMETHOD (CValue, GetName)
 KX_PYMETHOD (KX_GameObject, GetPhysicsId)
 KX_PYMETHOD (KX_GameObject, GetParent)
 KX_PYMETHOD (KX_GameObject, GetMesh)
 KX_PYMETHOD (KX_GameObject, ApplyImpulse)
 KX_PYMETHOD (KX_GameObject, DisableRigidBody)
 KX_PYMETHOD (KX_GameObject, EnableRigidBody)
 KX_PYMETHOD (KX_GameObject, RestoreDynamics)
 KX_PYMETHOD (KX_GameObject, SuspendDynamics)
 KX_PYMETHOD (KX_GameObject, SetVisible)
 KX_PYMETHOD (KX_GameObject, SetOrientation)
 KX_PYMETHOD (KX_GameObject, GetOrientation)
 KX_PYMETHOD (KX_GameObject, GetReactionForce)
 KX_PYMETHOD (KX_GameObject, GetMass)
 KX_PYMETHOD (KX_GameObject, GetVelocity)
 KX_PYMETHOD (KX_GameObject, GetLinearVelocity)
 KX_PYMETHOD (KX_GameObject, GetPosition)
void MarkVisible (void)
void MarkVisible (bool visible)
const MT_Matrix3x3NodeGetWorldOrientation () const
const MT_Point3NodeGetWorldPosition () const
const MT_Vector3NodeGetWorldScaling () const
void NodeSetLocalOrientation (const MT_Matrix3x3 &rot)
void NodeSetLocalPosition (const MT_Point3 &trans)
void NodeSetLocalScale (const MT_Vector3 &scale)
void NodeSetRelativeScale (const MT_Vector3 &scale)
void NodeUpdateGS (double time, bool bInitiator)
STR_String op2str (VALUE_OPERATOR op)
virtual void ProcessReplica (KX_GameObject *replica)
PyObject * Py_isA (PyObject *args)
PyObject * PySetPosition (PyObject *self, PyObject *args, PyObject *kwds)
virtual int Release ()
virtual void Relink (GEN_Map< GEN_HashedPtr, void * > *map)
void RemoveMeshes ()
virtual bool RemoveProperty (const STR_String &inName)
void ReParentLogic ()
void ReplicaSetName (STR_String name)
void ResetDebugColor ()
void ResolveCombinedVelocities (const MT_Vector3 &lin_vel, const MT_Vector3 &ang_vel, bool lin_vel_local, bool ang_vel_local)
void Resume (void)
virtual void SetAffected (bool bAffected=true)
void setAngularVelocity (const MT_Vector3 &ang_vel, bool local)
virtual void SetColorOperator (VALUE_OPERATOR op)
void SetCurrentTime (float currentTime)
virtual void SetCustomFlag1 (bool bCustomFlag)
virtual void SetCustomFlag2 (bool bCustomFlag)
void SetDebugColor (unsigned int bgra)
void SetError (bool err)
void SetIgnoreActivityCulling (bool b)
void setLinearVelocity (const MT_Vector3 &lin_vel, bool local)
virtual void SetModified (bool bModified)
void SetName (STR_String name)
void SetObjectColor (const MT_Vector4 &rgbavec)
virtual void SetOwnerExpression (class CExpression *expr)
void SetPhysicsController (KX_IPhysicsController *physicscontroller)
virtual void SetPropertiesModified (bool inModified)
virtual void SetProperty (const STR_String &name, CValue *ioProperty)
 Property Management.
void SetReleaseRequested (bool bReleaseRequested)
void SetSelected (bool bSelected)
void SetSGNode (SG_Node *node)
virtual void SetValue (CValue *newval)
void SetVisible (bool b)
void SpecialRelease ()
void Suspend (void)
void UpdateIPO (float curframetime, bool resurse, bool ipo_as_force, bool force_ipo_local)
void UpdateNonDynas ()
void UpdateTransform ()
double * ZeroVector ()

Static Public Member Functions

static PyObject * __getattr (PyObject *PyObj, char *attr)
static PyObject * __repr (PyObject *PyObj)
static int __setattr (PyObject *PyObj, char *attr, PyObject *value)
static void PyDestructor (PyObject *P)
static PyObject * sPy_isA (PyObject *self, PyObject *args, PyObject *kwd)
static PyObject * sPySetPosition (PyObject *self, PyObject *args, PyObject *kwds)
static void UpdateTransformFunc (SG_IObject *node, void *gameobj, void *scene)

Protected Member Functions

virtual void AddDataToReplica (CValue *replica)
virtual void DisableRefCount ()

Protected Attributes

SCA_ActuatorList m_actuators
bool m_bDyna
bool m_bSuspendDynamics
bool m_bUseObjectColor
bool m_bVisible
SCA_ControllerList m_controllers
bool m_ignore_activity_culling
std::vector< RAS_MeshObject * > m_meshes
STR_String m_name
MT_Vector4 m_objectColor
MT_CmMatrix4x4 m_OpenGL_4x4Matrix
KX_ClientObjectInfom_pClient_info
KX_IPhysicsControllerm_pPhysicsController1
SG_Nodem_pSGNode
SCA_SensorList m_sensors
bool m_suspended
STR_String m_text

Static Protected Attributes

static class MT_Point3 m_sDummy = MT_Point3(0,0,0)

Private Member Functions

bool ConvertPythonVectorArgs (PyObject *args, MT_Vector3 &pos, MT_Vector3 &pos2)

Private Attributes

 Py_Header

Classes

class  KX_GameObject

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

Generated by  Doxygen 1.6.0   Back to index