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

SCA_IController Class Reference

#include <SCA_IController.h>

Inheritance diagram for SCA_IController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 SCA_IController (SCA_IObject *gameobj)
virtual ~SCA_IController ()
virtual void Trigger (class SCA_LogicManager *logicmgr)=0
void LinkToSensor (SCA_ISensor *sensor)
void LinkToActuator (SCA_IActuator *)
std::vector< class SCA_ISensor * > & GetLinkedSensors ()
std::vector< class
SCA_IActuator * > & 
GetLinkedActuators ()
void ReserveActuator (int num)
void UnlinkAllSensors ()
void UnlinkAllActuators ()
void UnlinkActuator (class SCA_IActuator *actua)
void UnlinkSensor (class SCA_ISensor *sensor)
void SetState (unsigned int state)
void ApplyState (unsigned int state)
void Deactivate ()
bool IsJustActivated ()
void ClrJustActivated ()
void SetBookmark (bool bookmark)
void Activate (SG_DList &head)

Protected Attributes

std::vector< class SCA_ISensor * > m_linkedsensors
std::vector< class
SCA_IActuator * > 
m_linkedactuators
unsigned int m_statemask
bool m_justActivated
bool m_bookmark

Detailed Description

Use of SG_DList element: none Use of SG_QList element: build ordered list of activated controller on the owner object Head: SCA_IObject::m_activeControllers

Definition at line 43 of file SCA_IController.h.


Constructor & Destructor Documentation

SCA_IController::SCA_IController ( SCA_IObject gameobj)

Definition at line 44 of file SCA_IController.cpp.

SCA_IController::~SCA_IController ( ) [virtual]

Definition at line 54 of file SCA_IController.cpp.


Member Function Documentation

void SCA_IController::Activate ( SG_DList head) [inline]
void SCA_IController::ApplyState ( unsigned int  state)
void SCA_IController::ClrJustActivated ( ) [inline]

Definition at line 79 of file SCA_IController.h.

References m_justActivated.

void SCA_IController::Deactivate ( ) [inline]

Definition at line 70 of file SCA_IController.h.

References SG_DList::Delink().

Referenced by SCA_LogicManager::RemoveController().

std::vector< class SCA_IActuator * > & SCA_IController::GetLinkedActuators ( )

Definition at line 68 of file SCA_IController.cpp.

References m_linkedactuators.

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

std::vector< class SCA_ISensor * > & SCA_IController::GetLinkedSensors ( )

Definition at line 61 of file SCA_IController.cpp.

References m_linkedsensors.

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

bool SCA_IController::IsJustActivated ( ) [inline]

Definition at line 75 of file SCA_IController.h.

References m_justActivated.

Referenced by SCA_ISensor::Activate().

void SCA_IController::LinkToActuator ( SCA_IActuator actua)
void SCA_IController::LinkToSensor ( SCA_ISensor sensor)
void SCA_IController::ReserveActuator ( int  num) [inline]

Definition at line 60 of file SCA_IController.h.

References m_linkedactuators.

Referenced by LinkControllerToActuators().

void SCA_IController::SetBookmark ( bool  bookmark) [inline]

Definition at line 83 of file SCA_IController.h.

References m_bookmark.

Referenced by BL_ConvertControllers().

void SCA_IController::SetState ( unsigned int  state) [inline]

Definition at line 68 of file SCA_IController.h.

References m_statemask, and state.

Referenced by BL_ConvertControllers().

virtual void SCA_IController::Trigger ( class SCA_LogicManager logicmgr) [pure virtual]
void SCA_IController::UnlinkActuator ( class SCA_IActuator actua)
void SCA_IController::UnlinkAllActuators ( )
void SCA_IController::UnlinkAllSensors ( )

Definition at line 75 of file SCA_IController.cpp.

References SCA_ILogicBrick::IsActive(), and m_linkedsensors.

Referenced by SCA_LogicManager::RemoveController().

void SCA_IController::UnlinkSensor ( class SCA_ISensor sensor)

Member Data Documentation

bool SCA_IController::m_bookmark [protected]

Definition at line 51 of file SCA_IController.h.

Referenced by Activate(), and SetBookmark().

Definition at line 50 of file SCA_IController.h.

Referenced by ApplyState(), ClrJustActivated(), and IsJustActivated().

std::vector<class SCA_IActuator*> SCA_IController::m_linkedactuators [protected]
std::vector<class SCA_ISensor*> SCA_IController::m_linkedsensors [protected]
unsigned int SCA_IController::m_statemask [protected]

Definition at line 49 of file SCA_IController.h.

Referenced by ApplyState(), and SetState().


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