Game Python Reference Manual.

This manual lists all the Python classes and modules for Game Objects, Sensor bricks, Controllers etc.
Missing: Actuator & Controller reference.
This commit is contained in:
Kester Maddock
2004-05-24 07:49:50 +00:00
parent 86899e7a22
commit a96955efc2
24 changed files with 1275 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
# Documentation for SCA_RandomSensor
from SCA_ISensor import *
class SCA_RandomSensor(SCA_ISensor):
"""
This sensor activates randomly.
"""
def setSeed(seed):
"""
Sets the seed of the random number generator.
If the seed is 0, the generator will produce the same value on every call.
@type seed: integer.
"""
def getSeed():
"""
Returns the initial seed of the generator. Equal seeds produce equal random
series.
@rtype: integer
"""
def getLastDraw():
"""
Returns the last random number generated.
"""