Home | Trees | Indices | Help |
|
---|
|
PyObjectPlus --+ | CValue --+ | SCA_ILogicBrick --+ | SCA_IController
Base class for all controller logic bricks.
Instance Methods | |||
bool |
|
||
Deprecated | |||
---|---|---|---|
int |
|
||
list [SCA_ISensor] |
|
||
SCA_ISensor |
|
||
list [SCA_IActuator] |
|
||
SCA_IActuator |
|
||
integer |
|
||
string |
|
||
KX_GameObject |
|
||
|
Instance Variables | |
sequence supporting index/string lookups and iteration. |
actuators a list of actuators linked to this controller. |
int |
executePriority This determines the order controllers are evaluated, and actuators are activated (lower priority is executed first). (Inherited from GameTypes.SCA_ILogicBrick) |
bool |
invalid Test if the object has been freed by the game engine and is no longer valid. (Inherited from GameTypes.PyObjectPlus) |
string |
name The name of this CValue derived object (read-only). (Inherited from GameTypes.SCA_ILogicBrick) |
KX_GameObject or None in exceptional cases. |
owner The game object this logic brick is attached to (read-only). (Inherited from GameTypes.SCA_ILogicBrick) |
sequence supporting index/string lookups and iteration. |
sensors a list of sensors linked to this controller |
int bitmask |
state the controllers state bitmask. |
bool |
useHighPriority When set the controller executes always before all other controllers that dont have this set. |
Method Details |
Get the controllers state bitmask, this can be used with the GameObject's state to test if the the controller is active. This for instance will always be true however you could compare with a previous state to see when the state was activated. GameLogic.getCurrentController().state & GameLogic.getCurrentController().owner.state
Deprecated: Use the state property |
Gets a list of all sensors attached to this controller.
Deprecated: use the sensors property |
Gets the named linked sensor.
Deprecated: use the sensors[name] property |
Gets a list of all actuators linked to this controller.
Deprecated: Use the actuators property |
Gets the named linked actuator.
Deprecated: use the actuators[name] property |
Instance Variable Details |
actuatorsa list of actuators linked to this controller.
|
sensorsa list of sensors linked to this controller
|
statethe controllers state bitmask. This can be used with the GameObject's state to test if the controller is active.
|
useHighPriorityWhen set the controller executes always before all other controllers that dont have this set. note: Order of execution between high priority controllers is not guaranteed.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Mon Aug 31 23:12:32 2009 | http://epydoc.sourceforge.net |