Module SCA_PythonController :: Class SCA_PythonController
[frames | no frames]

Class SCA_PythonController

SCA_ILogicBrick --+    
                  |    
    SCA_IController --+
                      |
                     SCA_PythonController


A Python controller uses a Python script to activate it's actuators, based on it's sensors.
Method Summary
SCA_IActuator getActuator(name)
Gets the named linked actuator.
list [SCA_IActuator] getActuators()
Gets a list of all actuators linked to this controller.
string getScript()
Gets the Python script this controller executes.
SCA_ISensor getSensor(name)
Gets the named linked sensor.
list [SCA_ISensor] getSensors()
Gets a list of all sensors attached to this controller.
  setScript(script)
Sets the Python script this controller executes.
    Inherited from SCA_ILogicBrick
integer getExecutePriority()
Gets the execution priority of this logic brick.
KX_GameObject getOwner()
Gets the game object associated with this logic brick.
  setExecutePriority(priority)
Sets the priority of this logic brick.

Method Details

getActuator(name)

Gets the named linked actuator.
Parameters:
name
           (type=string)
Returns:
SCA_IActuator

getActuators()

Gets a list of all actuators linked to this controller.
Returns:
list [SCA_IActuator]

getScript()

Gets the Python script this controller executes.
Returns:
string

getSensor(name)

Gets the named linked sensor.
Parameters:
name
           (type=string)
Returns:
SCA_ISensor

getSensors()

Gets a list of all sensors attached to this controller.
Returns:
list [SCA_ISensor]

setScript(script)

Sets the Python script this controller executes.
Parameters:
script
           (type=string.)

Generated by Epydoc 2.1 on Thu Feb 1 00:12:33 2007 http://epydoc.sf.net