blender/source/gameengine/GameLogic
Benoit Bolsee bc8f002a4c BGE state system improvement: the sensor with Level option enabled will trigger the controller of a newly activated state, even if the sensor is already connected to an active state; new isTriggered() python function to determine which sensor triggered the current controller.
Previously, this behaviour was available only for sensors
that were not connected to any active state, which was
forcing the game designer to duplicate sensors in some 
cases.
For example the Always sensors used to initialize the 
states needed to be duplicated for each state. With this
patch, a single Always sensor with Level option enabled
will suffice to initialize all the states. 
A Python controller can determine which sensor did trigger
with the new SCA_ISensor::isTriggered() function.

Notes:
- When a sensor with level option enabled is connected
  to multiple controllers, only those of newly activated
  states will be triggered. The controllers of already
  activated states will receive no trigger, unless the 
  sensor internal state toggled, in which case all the
  controllers are triggered as always.
- The old isPositive() function returns the internal
  state of the sensor, positive or negative; the new 
  isTriggered() function returns 1 only for sensors
  that generated an event in the current frame.
2008-08-23 11:54:27 +00:00
..
Joystick Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +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 Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_2DFilterActuator.cpp improvement of 2d-filter custom shader, 2008-07-12 10:21:37 +00:00
SCA_2DFilterActuator.h improvement of 2d-filter custom shader, 2008-07-12 10:21:37 +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 game engine python api 2008-08-14 03:23:36 +00:00
SCA_ActuatorSensor.h BGE patch: Add PyDoc for new logic bricks, set exception message on Py error, remove args on Py functions that don't take any to save CPU time 2008-07-23 21:37:37 +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 BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_AlwaysSensor.h BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_ANDController.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_ANDController.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_DelaySensor.cpp BGE patch: New Delay sensor (derived from patch #17472) 2008-08-16 20:45:37 +00:00
SCA_DelaySensor.h BGE patch: New Delay sensor (derived from patch #17472) 2008-08-16 20:45:37 +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 Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_ExpressionController.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_IActuator.cpp BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_IActuator.h BGE logic patch: new "Add" mode for Ipo actuator, several corrections in state system. 2008-07-08 12:18:43 +00:00
SCA_IController.cpp BGE state system improvement: the sensor with Level option enabled will trigger the controller of a newly activated state, even if the sensor is already connected to an active state; new isTriggered() python function to determine which sensor triggered the current controller. 2008-08-23 11:54:27 +00:00
SCA_IController.h BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +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 game engine python api 2008-08-14 03:23:36 +00:00
SCA_ILogicBrick.h BGE patch: Relink actuators with target within group when duplicating group; generalize protection against object deletion for all actuators that point to objects. 2008-07-19 07:45:19 +00:00
SCA_IObject.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_IObject.h BGE logic patch: new "Add" mode for Ipo actuator, several corrections in state system. 2008-07-08 12:18:43 +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 state system improvement: the sensor with Level option enabled will trigger the controller of a newly activated state, even if the sensor is already connected to an active state; new isTriggered() python function to determine which sensor triggered the current controller. 2008-08-23 11:54:27 +00:00
SCA_ISensor.h BGE state system improvement: the sensor with Level option enabled will trigger the controller of a newly activated state, even if the sensor is already connected to an active state; new isTriggered() python function to determine which sensor triggered the current controller. 2008-08-23 11:54:27 +00:00
SCA_JoystickManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_JoystickManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_JoystickSensor.cpp BGE logic update: new servo control motion actuator, new distance constraint actuator, new orientation constraint actuator, new actuator sensor. 2008-07-04 08:14:50 +00:00
SCA_JoystickSensor.h BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +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 state system improvement: the sensor with Level option enabled will trigger the controller of a newly activated state, even if the sensor is already connected to an active state; new isTriggered() python function to determine which sensor triggered the current controller. 2008-08-23 11:54:27 +00:00
SCA_KeyboardSensor.h BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_LogicManager.cpp BGE state system improvement: the sensor with Level option enabled will trigger the controller of a newly activated state, even if the sensor is already connected to an active state; new isTriggered() python function to determine which sensor triggered the current controller. 2008-08-23 11:54:27 +00:00
SCA_LogicManager.h BGE state system improvement: the sensor with Level option enabled will trigger the controller of a newly activated state, even if the sensor is already connected to an active state; new isTriggered() python function to determine which sensor triggered the current controller. 2008-08-23 11:54:27 +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 BGE logic update: new servo control motion actuator, new distance constraint actuator, new orientation constraint actuator, new actuator sensor. 2008-07-04 08:14:50 +00:00
SCA_MouseSensor.h BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_NANDController.cpp BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SCA_NANDController.h BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SCA_NORController.cpp BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SCA_NORController.h BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SCA_ORController.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_ORController.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_PropertyActuator.cpp BGE patch: Relink actuators with target within group when duplicating group; generalize protection against object deletion for all actuators that point to objects. 2008-07-19 07:45:19 +00:00
SCA_PropertyActuator.h BGE patch: Relink actuators with target within group when duplicating group; generalize protection against object deletion for all actuators that point to objects. 2008-07-19 07:45:19 +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 BGE logic update: new servo control motion actuator, new distance constraint actuator, new orientation constraint actuator, new actuator sensor. 2008-07-04 08:14:50 +00:00
SCA_PropertySensor.h BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_PythonController.cpp BGE state system improvement: the sensor with Level option enabled will trigger the controller of a newly activated state, even if the sensor is already connected to an active state; new isTriggered() python function to determine which sensor triggered the current controller. 2008-08-23 11:54:27 +00:00
SCA_PythonController.h BGE state system improvement: the sensor with Level option enabled will trigger the controller of a newly activated state, even if the sensor is already connected to an active state; new isTriggered() python function to determine which sensor triggered the current controller. 2008-08-23 11:54:27 +00:00
SCA_RandomActuator.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_RandomActuator.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +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 BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_RandomSensor.h BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +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 patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SCA_XNORController.h BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SCA_XORController.cpp BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SCA_XORController.h BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SConscript 2d-Filters feature and actuators. 2007-10-22 20:24:26 +00:00