Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-05-24 11:49:50 +0400
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-05-24 11:49:50 +0400
commita96955efc2c8ecc4de7b42ea717c3e287dad05cb (patch)
tree4154dc0f6850d1e942dbae8647966fb49ff17cd5 /source/gameengine/PyDoc/GameLogic.py
parent86899e7a22a3143ff8ecf2f3a7d65104ac6fa0b8 (diff)
Game Python Reference Manual.
This manual lists all the Python classes and modules for Game Objects, Sensor bricks, Controllers etc. Missing: Actuator & Controller reference.
Diffstat (limited to 'source/gameengine/PyDoc/GameLogic.py')
-rw-r--r--source/gameengine/PyDoc/GameLogic.py85
1 files changed, 85 insertions, 0 deletions
diff --git a/source/gameengine/PyDoc/GameLogic.py b/source/gameengine/PyDoc/GameLogic.py
new file mode 100644
index 00000000000..3672a16be44
--- /dev/null
+++ b/source/gameengine/PyDoc/GameLogic.py
@@ -0,0 +1,85 @@
+"""
+Documentation for the GameLogic Module.
+
+Constants:
+ KX_TRUE: True value used by some modules
+ KX_FALSE: False value used by some modules.
+
+Property Sensor:
+ Tests that the property sensor is able to perform.
+ KX_PROPSENSOR_EQUAL: Activate when the property is equal to the sensor value.
+ KX_PROPSENSOR_NOTEQUAL Activate when the property is not equal to the sensor value.
+ KX_PROPSENSOR_INTERVAL Activate when the property is between the specified limits.
+ KX_PROPSENSOR_CHANGED Activate when the property changes
+ KX_PROPSENSOR_EXPRESSION Activate when the expression matches
+
+Constraint Actuator:
+ The axis and type (location/rotation) of constraint
+ KX_CONSTRAINTACT_LOCX
+ KX_CONSTRAINTACT_LOCY
+ KX_CONSTRAINTACT_LOCZ
+ KX_CONSTRAINTACT_ROTX
+ KX_CONSTRAINTACT_ROTY
+ KX_CONSTRAINTACT_ROTZ
+
+IPO Actuator:
+ IPO Types
+ KX_IPOACT_PLAY
+ KX_IPOACT_PINGPONG
+ KX_IPOACT_FLIPPER
+ KX_IPOACT_LOOPSTOP
+ KX_IPOACT_LOOPEND
+
+Random distributions:
+ KX_RANDOMACT_BOOL_CONST
+ KX_RANDOMACT_BOOL_UNIFORM
+ KX_RANDOMACT_BOOL_BERNOUILLI
+ KX_RANDOMACT_INT_CONST
+ KX_RANDOMACT_INT_UNIFORM
+ KX_RANDOMACT_INT_POISSON
+ KX_RANDOMACT_FLOAT_CONST
+ KX_RANDOMACT_FLOAT_UNIFORM
+ KX_RANDOMACT_FLOAT_NORMAL
+ KX_RANDOMACT_FLOAT_NEGATIVE_EXPONENTIAL
+
+"""
+
+
+def getCurrentController():
+ """
+ Gets the Python controller associated with this Python script.
+
+ @rtype: SCA_PythonController
+ """
+def addActiveActuator(actuator, activate):
+ """
+ Activates the given actuator.
+
+ @type actuator: SCA_IActuator
+ @type activate: boolean
+ @param activate: whether to activate or deactivate the given actuator.
+ """
+def getRandomFloat():
+ """
+ Returns a random floating point value in the range [0...1)
+ """
+def setGravity(gravity):
+ """
+ Sets the world gravity.
+
+ @type gravity: list [fx, fy, fz]
+ """
+def getSpectrum():
+ """
+ Returns a 512 point list from the sound card.
+ This only works if the fmod sound driver is being used.
+
+ @rtype: list [float], len(getSpectrum()) == 512
+ """
+def stopDSP():
+ """
+ Stops the sound driver using DSP effects.
+
+ Only the fmod sound driver supports this.
+ DSP can be computationally expensive.
+ """