Home | Trees | Indices | Help |
|
---|
|
SCA_ILogicBrick.SCA_ILogicBrick --+ | SCA_IController.SCA_IController --+ | SCA_PythonController
A Python controller uses a Python script to activate it's actuators, based on it's sensors.
Properties:
Instance Methods | |||
|
|||
|
|||
list [SCA_ISensor] |
|
||
SCA_ISensor |
|
||
list [SCA_IActuator] |
|
||
SCA_IActuator |
|
||
string |
|
||
|
|||
int |
|
||
integer |
|
||
KX_GameObject |
|
||
|
Instance Variables | |
int |
executePriority This determines the order controllers are evaluated, and actuators are activated (lower priority is executed first). (Inherited from SCA_ILogicBrick.SCA_ILogicBrick) |
KX_GameObject or None in exceptional cases. |
owner The game object this logic brick is attached to (read only). (Inherited from SCA_ILogicBrick.SCA_ILogicBrick) |
string, read-only |
script the Python script this controller executes |
integer |
state the controllers state bitmask. |
Method Details |
Activates an actuator attached to this controller.
|
Deactivates an actuator attached to this controller.
|
Gets the named linked sensor.
|
Gets the named linked actuator.
|
Sets the Python script this controller executes.
|
DEPRECATED: use the state property 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().getState() & GameLogic.getCurrentController().getOwner().getState()
|
Instance Variable Details |
statethe controllers state bitmask. This can be used with the GameObject's state to test if the controller is active.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Fri Apr 24 17:51:20 2009 | http://epydoc.sourceforge.net |