Blender Git Commit Log

Git Commits -> Revision 1c663bb

Revision 1c663bb by Benoit Bolsee (master)
December 29, 2008, 16:36 (GMT)
First batch of GE API cleanup.

The principle is to replace most get/set methods of logic bricks by direct property access.
To make porting of game code easier, the properties have usually the same type and use than
the return values/parameters of the get/set methods.
More details on http://wiki.blender.org/index.php/GameEngineDev/Python_API_Clean_Up

Old methods are still available but will produce deprecation warnings on the console:

"<method> is deprecated, use the <property> property instead"

You can avoid these messages by turning on the "Ignore deprecation warnings" option in Game menu.

PyDoc is updated to include the new properties and display a deprecation warning
for the get/set methods that are being deprecated.

Commit Details:

Full Hash: 1c663bbc7e53cda1fe35579302574b0d98aa8db3
SVN Revision: 18152
Parent Commit: d91daaa
Lines Changed: +1182, -247

37 Modified Paths:

/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp (+4, -0) (Diff)
/source/gameengine/Expressions/PyObjectPlus.h (+13, -2) (Diff)
/source/gameengine/Expressions/Value.cpp (+12, -0) (Diff)
/source/gameengine/Expressions/Value.h (+5, -0) (Diff)
/source/gameengine/GameLogic/SCA_ActuatorSensor.cpp (+24, -0) (Diff)
/source/gameengine/GameLogic/SCA_ActuatorSensor.h (+1, -0) (Diff)
/source/gameengine/GameLogic/SCA_DelaySensor.cpp (+45, -0) (Diff)
/source/gameengine/GameLogic/SCA_DelaySensor.h (+1, -0) (Diff)
/source/gameengine/GameLogic/SCA_ISensor.cpp (+153, -69) (Diff)
/source/gameengine/GameLogic/SCA_ISensor.h (+8, -4) (Diff)
/source/gameengine/GameLogic/SCA_JoystickSensor.cpp (+160, -1) (Diff)
/source/gameengine/GameLogic/SCA_JoystickSensor.h (+3, -0) (Diff)
/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp (+138, -41) (Diff)
/source/gameengine/GameLogic/SCA_KeyboardSensor.h (+8, -8) (Diff)
/source/gameengine/GameLogic/SCA_MouseSensor.cpp (+145, -88) (Diff)
/source/gameengine/GameLogic/SCA_MouseSensor.h (+9, -1) (Diff)
/source/gameengine/GameLogic/SCA_PropertyActuator.cpp (+35, -0) (Diff)
/source/gameengine/GameLogic/SCA_PropertyActuator.h (+1, -0) (Diff)
/source/gameengine/GameLogic/SCA_PropertySensor.cpp (+52, -0) (Diff)
/source/gameengine/GameLogic/SCA_PropertySensor.h (+1, -0) (Diff)
/source/gameengine/GameLogic/SCA_PythonController.cpp (+23, -1) (Diff)
/source/gameengine/GameLogic/SCA_PythonController.h (+1, -0) (Diff)
/source/gameengine/GameLogic/SCA_RandomActuator.cpp (+61, -3) (Diff)
/source/gameengine/GameLogic/SCA_RandomActuator.h (+1, -0) (Diff)
/source/gameengine/GamePlayer/ghost/GPG_Application.cpp (+3, -0) (Diff)
/source/gameengine/Ketsji/KX_PolyProxy.cpp (+16, -16) (Diff)
/source/gameengine/PyDoc/KX_ActuatorSensor.py (+7, -0) (Diff)
/source/gameengine/PyDoc/SCA_DelaySensor.py (+17, -0) (Diff)
/source/gameengine/PyDoc/SCA_ILogicBrick.py (+9, -0) (Diff)
/source/gameengine/PyDoc/SCA_ISensor.py (+27, -7) (Diff)
/source/gameengine/PyDoc/SCA_JoystickSensor.py (+58, -1) (Diff)
/source/gameengine/PyDoc/SCA_KeyboardSensor.py (+60, -5) (Diff)
/source/gameengine/PyDoc/SCA_MouseSensor.py (+11, -0) (Diff)
/source/gameengine/PyDoc/SCA_PropertyActuator.py (+11, -0) (Diff)
/source/gameengine/PyDoc/SCA_PropertySensor.py (+17, -0) (Diff)
/source/gameengine/PyDoc/SCA_PythonController.py (+10, -0) (Diff)
/source/gameengine/PyDoc/SCA_RandomActuator.py (+32, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021