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

SCA_IObject Class Reference

#include <SCA_IObject.h>

Inheritance diagram for SCA_IObject:
Inheritance graph
[legend]

List of all members.

Public Types

enum  ObjectTypes { OBJ_ARMATURE = 0, OBJ_CAMERA = 1, OBJ_LIGHT = 2 }
typedef enum
SCA_IObject::ObjectTypes 
ObjectTypes

Public Member Functions

 SCA_IObject ()
virtual ~SCA_IObject ()
SCA_ControllerListGetControllers ()
SCA_SensorListGetSensors ()
SCA_ActuatorListGetActuators ()
SG_QListGetActiveActuators ()
void AddSensor (SCA_ISensor *act)
void ReserveSensor (int num)
void AddController (SCA_IController *act)
void ReserveController (int num)
void AddActuator (SCA_IActuator *act)
void ReserveActuator (int num)
void RegisterActuator (SCA_IActuator *act)
void UnregisterActuator (SCA_IActuator *act)
void RegisterObject (SCA_IObject *objs)
void UnregisterObject (SCA_IObject *objs)
virtual bool UnlinkObject (SCA_IObject *clientobj)
SCA_ISensorFindSensor (const STR_String &sensorname)
SCA_IActuatorFindActuator (const STR_String &actuatorname)
SCA_IControllerFindController (const STR_String &controllername)
void SetCurrentTime (float currentTime)
virtual void ReParentLogic ()
void SetIgnoreActivityCulling (bool b)
bool GetIgnoreActivityCulling ()
void Suspend (void)
void Resume (void)
void SetInitState (unsigned int initState)
void ResetState (void)
void SetState (unsigned int state)
unsigned int GetState (void)
virtual int GetGameObjectType ()

Protected Attributes

SCA_SensorList m_sensors
SCA_ControllerList m_controllers
SCA_ActuatorList m_actuators
SCA_ActuatorList m_registeredActuators
SCA_ObjectList m_registeredObjects
SG_QList m_activeActuators
SG_QList m_activeControllers
bool m_ignore_activity_culling
bool m_suspended
unsigned int m_initState
unsigned int m_state
SG_QListm_firstState

Static Protected Attributes

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

Friends

class KX_StateActuator
class SCA_IActuator
class SCA_IController

Detailed Description

Definition at line 54 of file SCA_IObject.h.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
OBJ_ARMATURE 
OBJ_CAMERA 
OBJ_LIGHT 

Definition at line 220 of file SCA_IObject.h.


Constructor & Destructor Documentation

SCA_IObject::SCA_IObject ( )

Definition at line 45 of file SCA_IObject.cpp.

References m_suspended.

SCA_IObject::~SCA_IObject ( ) [virtual]

Member Function Documentation

void SCA_IObject::AddActuator ( SCA_IActuator act)

Definition at line 108 of file SCA_IObject.cpp.

References CValue::AddRef(), and m_actuators.

Referenced by BL_ConvertActuators().

void SCA_IObject::AddController ( SCA_IController act)

Definition at line 100 of file SCA_IObject.cpp.

References CValue::AddRef(), and m_controllers.

Referenced by BL_ConvertControllers().

void SCA_IObject::AddSensor ( SCA_ISensor act)

Definition at line 92 of file SCA_IObject.cpp.

References CValue::AddRef(), and m_sensors.

Referenced by BL_ConvertSensors().

SCA_IActuator * SCA_IObject::FindActuator ( const STR_String actuatorname)

Definition at line 234 of file SCA_IObject.cpp.

References m_actuators, and NULL.

Referenced by SCA_ActuatorSensor::ReParent(), and SCA_ActuatorSensor::SCA_ActuatorSensor().

SCA_IController * SCA_IObject::FindController ( const STR_String controllername)

Definition at line 217 of file SCA_IObject.cpp.

References m_controllers, and NULL.

SCA_ISensor * SCA_IObject::FindSensor ( const STR_String sensorname)

Definition at line 200 of file SCA_IObject.cpp.

References m_sensors, and NULL.

SG_QList& SCA_IObject::GetActiveActuators ( ) [inline]

Definition at line 129 of file SCA_IObject.h.

References m_activeActuators.

SCA_ActuatorList& SCA_IObject::GetActuators ( ) [inline]
SCA_ControllerList& SCA_IObject::GetControllers ( ) [inline]
virtual int SCA_IObject::GetGameObjectType ( ) [inline, virtual]
bool SCA_IObject::GetIgnoreActivityCulling ( ) [inline]

Set whether or not this object wants to ignore activity culling requests

Definition at line 181 of file SCA_IObject.h.

References m_ignore_activity_culling.

Referenced by KX_Scene::UpdateObjectActivity().

SCA_SensorList& SCA_IObject::GetSensors ( ) [inline]
unsigned int SCA_IObject::GetState ( void  ) [inline]

Get the object state

Definition at line 214 of file SCA_IObject.h.

References m_state.

Referenced by KX_StateActuator::Update().

void SCA_IObject::RegisterActuator ( SCA_IActuator act)
void SCA_IObject::RegisterObject ( SCA_IObject objs)
void SCA_IObject::ReParentLogic ( ) [virtual]
void SCA_IObject::ReserveActuator ( int  num) [inline]

Definition at line 145 of file SCA_IObject.h.

References m_actuators.

Referenced by BL_ConvertActuators().

void SCA_IObject::ReserveController ( int  num) [inline]

Definition at line 140 of file SCA_IObject.h.

References m_controllers.

Referenced by BL_ConvertControllers().

void SCA_IObject::ReserveSensor ( int  num) [inline]

Definition at line 135 of file SCA_IObject.h.

References m_sensors.

Referenced by BL_ConvertSensors().

void SCA_IObject::ResetState ( void  ) [inline]

initialize the state when object is created

Definition at line 204 of file SCA_IObject.h.

References m_initState, and SetState().

Referenced by BL_ConvertBlenderObjects(), and KX_Scene::ReplicateLogic().

void SCA_IObject::Resume ( void  )

Resume progress

Reimplemented in KX_GameObject.

Definition at line 267 of file SCA_IObject.cpp.

References i, m_sensors, and m_suspended.

void SCA_IObject::SetCurrentTime ( float  currentTime) [inline]

Definition at line 165 of file SCA_IObject.h.

void SCA_IObject::SetIgnoreActivityCulling ( bool  b) [inline]

Set whether or not to ignore activity culling requests

Definition at line 172 of file SCA_IObject.h.

References m_ignore_activity_culling.

Referenced by gameobject_from_blenderobject().

void SCA_IObject::SetInitState ( unsigned int  initState) [inline]

Set init state

Definition at line 199 of file SCA_IObject.h.

References m_initState.

Referenced by BL_ConvertBlenderObjects().

void SCA_IObject::SetState ( unsigned int  state)

Set the object state

Definition at line 280 of file SCA_IObject.cpp.

References m_controllers, m_state, and state.

Referenced by ResetState(), and KX_StateActuator::Update().

void SCA_IObject::Suspend ( void  )

Suspend all progress.

Reimplemented in KX_GameObject.

Definition at line 251 of file SCA_IObject.cpp.

References i, m_ignore_activity_culling, m_sensors, and m_suspended.

virtual bool SCA_IObject::UnlinkObject ( SCA_IObject clientobj) [inline, virtual]

UnlinkObject(...) this object is informed that one of the object to which it holds a reference is deleted returns true if there was indeed a reference.

Reimplemented in BL_ArmatureObject.

Definition at line 159 of file SCA_IObject.h.

void SCA_IObject::UnregisterActuator ( SCA_IActuator act)
void SCA_IObject::UnregisterObject ( SCA_IObject objs)

Friends And Related Function Documentation

friend class KX_StateActuator [friend]

Definition at line 60 of file SCA_IObject.h.

friend class SCA_IActuator [friend]

Definition at line 61 of file SCA_IObject.h.

friend class SCA_IController [friend]

Definition at line 62 of file SCA_IObject.h.


Member Data Documentation

Definition at line 83 of file SCA_IObject.h.

Referenced by SCA_IController::Activate().

Definition at line 78 of file SCA_IObject.h.

Referenced by SCA_IController::Activate().

Definition at line 65 of file SCA_IObject.h.

Referenced by AddActuator(), FindActuator(), GetActuators(), ReserveActuator(), and ~SCA_IObject().

pointer inside state actuator list for sorting

Definition at line 110 of file SCA_IObject.h.

Referenced by KX_StateActuator::Activate(), and KX_StateActuator::Update().

Ignore activity culling requests?

Definition at line 90 of file SCA_IObject.h.

Referenced by GetIgnoreActivityCulling(), KX_GameObject::KX_GameObject(), SetIgnoreActivityCulling(), KX_GameObject::Suspend(), and Suspend().

unsigned int SCA_IObject::m_initState [protected]

init state of object (used when object is created)

Definition at line 100 of file SCA_IObject.h.

Referenced by ResetState(), and SetInitState().

Definition at line 66 of file SCA_IObject.h.

Referenced by RegisterActuator(), ReParentLogic(), UnregisterActuator(), and ~SCA_IObject().

Definition at line 67 of file SCA_IObject.h.

Referenced by RegisterObject(), ReParentLogic(), UnregisterObject(), and ~SCA_IObject().

MT_Point3 SCA_IObject::m_sDummy = MT_Point3(0,0,0) [static, protected]

Definition at line 85 of file SCA_IObject.h.

unsigned int SCA_IObject::m_state [protected]

current state = bit mask of state that are active

Definition at line 105 of file SCA_IObject.h.

Referenced by GetState(), KX_GameObject::ProcessReplica(), and SetState().

bool SCA_IObject::m_suspended [protected]

Ignore updates?

Definition at line 95 of file SCA_IObject.h.

Referenced by KX_GameObject::Resume(), Resume(), SCA_IObject(), KX_GameObject::Suspend(), and Suspend().


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