Updates to GamePython Reference.

Added Actuator documentation.
This commit is contained in:
2004-06-02 12:43:27 +00:00
parent 474ec217ae
commit 976e3a1824
29 changed files with 1049 additions and 65 deletions

View File

@@ -1,8 +1,8 @@
# $Id$
# Documentation for SCA_PythonController
from SCA_ILogicBrick import *
from SCA_IController import *
class SCA_PythonController(SCA_ILogicBrick):
class SCA_PythonController(SCA_IController):
"""
A Python controller uses a Python script to activate it's actuators,
based on it's sensors.
@@ -12,27 +12,27 @@ class SCA_PythonController(SCA_ILogicBrick):
"""
Gets a list of all sensors attached to this controller.
@rtype: list [SCA_ISensor]
@rtype: list [L{SCA_ISensor}]
"""
def getSensor(name):
"""
Gets the named linked sensor.
@type name: string
@rtype: SCA_ISensor
@rtype: L{SCA_ISensor}
"""
def getActuators():
"""
Gets a list of all actuators linked to this controller.
@rtype: list [SCA_IActuator]
@rtype: list [L{SCA_IActuator}]
"""
def getActuator(name):
"""
Gets the named linked actuator.
@type name: string
@rtype: SCA_IActuator
@rtype: L{SCA_IActuator}
"""
def getScript():
"""