blender/source/gameengine/GameLogic
Campbell Barton 136d4c34ba deprecate controller.getActuator(name) and controller.getSensor(name) for
controller.actuators[name] and controller.sensors[name]

Made a read-only sequence type for logic brick sensors and actuators which can access single items or be used like a list or dictionary.
We could use a python dictionary or CValueList but that would be slower to create.

So you can do...
 for s in controller.sensors: print s

 print controller.sensors["Sensor"]

 print controller.sensors[0]

 sensors = list(controller.sensors)

This sequence type keeps a reference to the proxy it came from and will raise an error on access if the proxy has been removed.
2009-05-10 01:48:14 +00:00
..
Joystick Missing <stdlib.h> for abs() made this file not compile for me. 2009-04-17 10:24:44 +00:00
CMakeLists.txt Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
Makefile converted my gen_utils.h fix to PyObjectPlus.h 2008-09-06 14:13:31 +00:00
SCA_2DFilterActuator.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_2DFilterActuator.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_ActuatorEventManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_ActuatorEventManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_ActuatorSensor.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_ActuatorSensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_AlwaysEventManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_AlwaysEventManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_AlwaysSensor.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_AlwaysSensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_ANDController.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_ANDController.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_DelaySensor.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_DelaySensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_EventManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_EventManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_ExpressionController.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_ExpressionController.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_IActuator.cpp BGE performance: use inline function as much as possible in scenegraph and logic to avoid function call. 2009-05-03 21:51:57 +00:00
SCA_IActuator.h BGE performance: use inline function as much as possible in scenegraph and logic to avoid function call. 2009-05-03 21:51:57 +00:00
SCA_IController.cpp deprecate controller.getActuator(name) and controller.getSensor(name) for 2009-05-10 01:48:14 +00:00
SCA_IController.h moved py controller functions from SCA_PythonController to SCA_IController - the base controller class so python can get the sensors & actuators from any controller (not just SCA_PythonController types) 2009-05-06 09:12:08 +00:00
SCA_IInputDevice.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_IInputDevice.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_ILogicBrick.cpp BGE performance: use inline function as much as possible in scenegraph and logic to avoid function call. 2009-05-03 21:51:57 +00:00
SCA_ILogicBrick.h BGE performance: use inline function as much as possible in scenegraph and logic to avoid function call. 2009-05-03 21:51:57 +00:00
SCA_IObject.cpp BGE performance: use inline function as much as possible in scenegraph and logic to avoid function call. 2009-05-03 21:51:57 +00:00
SCA_IObject.h BGE performance: use inline function as much as possible in scenegraph and logic to avoid function call. 2009-05-03 21:51:57 +00:00
SCA_IScene.cpp BGE bug fix: crash at exit when object with Radar/Near sensor has debug properties 2008-04-19 21:15:37 +00:00
SCA_IScene.h BGE bug fix: crash at exit when object with Radar/Near sensor has debug properties 2008-04-19 21:15:37 +00:00
SCA_ISensor.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_ISensor.h BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_JoystickManager.cpp Fix for a relative paths issue in the game engine. G.sce was being 2008-10-11 00:56:49 +00:00
SCA_JoystickManager.h BGE patch approved: BGE Multiple Joysticks 2008-08-31 18:42:58 +00:00
SCA_JoystickSensor.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_JoystickSensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_KeyboardManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_KeyboardManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_KeyboardSensor.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_KeyboardSensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_LogicManager.cpp BGE: fix a crash with previous scene destruction speed up commit when sensors and controllers are cross connected between objects. 2009-05-03 21:42:39 +00:00
SCA_LogicManager.h BGE performance: 2009-05-01 20:34:23 +00:00
SCA_MouseManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_MouseManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_MouseSensor.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_MouseSensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_NANDController.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_NANDController.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_NORController.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_NORController.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_ORController.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_ORController.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_PropertyActuator.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_PropertyActuator.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_PropertyEventManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_PropertyEventManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_PropertySensor.cpp fixes for bugs submitted by BGE users, fixes by myself and Mitchell Stokes 2009-05-03 09:21:58 +00:00
SCA_PropertySensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_PythonController.cpp moved py controller functions from SCA_PythonController to SCA_IController - the base controller class so python can get the sensors & actuators from any controller (not just SCA_PythonController types) 2009-05-06 09:12:08 +00:00
SCA_PythonController.h moved py controller functions from SCA_PythonController to SCA_IController - the base controller class so python can get the sensors & actuators from any controller (not just SCA_PythonController types) 2009-05-06 09:12:08 +00:00
SCA_RandomActuator.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_RandomActuator.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_RandomEventManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_RandomEventManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_RandomNumberGenerator.cpp big warning hunt commit 2005-03-09 19:45:59 +00:00
SCA_RandomNumberGenerator.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_RandomSensor.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_RandomSensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_TimeEventManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_TimeEventManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_XNORController.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_XNORController.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_XORController.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_XORController.h BGE Python API 2009-04-20 23:17:52 +00:00
SConscript SCons: 2009-02-15 23:26:00 +00:00