~diresu/blender/blender-command-port

« back to all changes in this revision

Viewing changes to source/gameengine/PyDoc/GameLogic.py

  • Committer: Dietrich Bollmann
  • Date: 2009-07-26 14:27:44 UTC
  • mfrom: (184.1.1008)
  • Revision ID: dietrich@formgames.org-20090726142744-75hivjratygfz7q3
Update to state of blender repository from 2009-07-26 revision 21911 (launchpad: 1192).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: GameLogic.py 20326 2009-05-21 18:10:19Z ben2610 $
 
1
# $Id: GameLogic.py 20922 2009-06-16 07:16:51Z campbellbarton $
2
2
"""
3
3
Documentation for the GameLogic Module.
4
4
=======================================
271
271
@var KX_PARENT_REMOVE:
272
272
@var KX_PARENT_SET:
273
273
 
274
 
@group Shader: MODELMATRIX*, MODELVIEWMATRIX*, VIEWMATRIX*, CAM_POS, CONSTANT_TIMER
 
274
@group Shader: MODELMATRIX*, MODELVIEWMATRIX*, VIEWMATRIX*, CAM_POS, CONSTANT_TIMER, SHD_TANGENT
275
275
@var VIEWMATRIX:
276
276
@var VIEWMATRIX_INVERSE:
277
277
@var VIEWMATRIX_INVERSETRANSPOSE:
285
285
@var MODELVIEWMATRIX_INVERSETRANSPOSE:
286
286
@var MODELVIEWMATRIX_TRANSPOSE:
287
287
@var CAM_POS: Current camera position
288
 
@var CONSTANT_TIMER: Current camera position
289
 
@var SHD_TANGENT: Current camera position
 
288
@var CONSTANT_TIMER: User a timer for the uniform value.
 
289
@var SHD_TANGENT: Not yet documented.
290
290
 
291
291
@group Blender Material: BL_*
292
292
@var BL_DST_ALPHA:
302
302
@var BL_ZERO:
303
303
 
304
304
@group Deprecated: addActiveActuator
 
305
 
 
306
@var globalDict:        A dictionary that is saved between loading blend files so you can use
 
307
                                        it to store inventory and other variables you want to store between
 
308
                                        scenes and blend files. It can also be written to a file and loaded
 
309
                                        later on with the game load/save actuators.
 
310
                                        note: only python built in types such as int/string/bool/float/tuples/lists
 
311
                                        can be saved, GameObjects, Actuators etc will not work as expectred.
305
312
"""
306
313
 
307
314
import GameTypes
441
448
        @type ticrate: float
442
449
        """
443
450
 
 
451
def EvalExpression(text):
 
452
        """
 
453
        Evaluate the string as an expression, similar to the expression controller logic brick.
 
454
        @param text: The expression to evaluate.
 
455
        @type text: string
 
456
        @return: The result of the expression. The type depends on the expression.
 
457
        """
 
458
 
444
459
#{ Utility functions
445
460
def getAverageFrameRate():
446
461
        """