BGE patch: Add NAND, NOR, XOR, XNOR controllers.
authorBenoit Bolsee <benoit.bolsee@online.be>
Mon, 23 Jun 2008 20:41:18 +0000 (20:41 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Mon, 23 Jun 2008 20:41:18 +0000 (20:41 +0000)
commit02132de7aadee611c8641f01fa44efdf43f54cc4
treece6314b7c61fe1758383876b6cc2f9f8c5a2b6b0
parent10c57fd86e0d42fe5e9f1928598e4642aa778e89
BGE patch: Add NAND, NOR, XOR, XNOR controllers.

NAND controller is an inverted AND controller: the output is
     1 if any of the input is 0.
NOR  controller is an inverted OR controller: the output is 0
     if any of the input is 1.
XOR  controller is an exclusive OR: the output is 1 if and only
     if one input is 1 and all the other inputs are 0.
XNOR controller is an inverted XOR: the output is 0 if and only
     if one input is 0 and all the other inputs are 0.
The NAND, NORT and XNOR controllers are very usefull to create
complementary outputs to start and stop actuators synchronously.
MSCV project files updated.
13 files changed:
projectfiles_vc7/gameengine/gamelogic/SCA_GameLogic.vcproj
source/blender/makesdna/DNA_controller_types.h
source/blender/src/buttons_logic.c
source/gameengine/Converter/KX_ConvertControllers.cpp
source/gameengine/GameLogic/SCA_NANDController.cpp [new file with mode: 0644]
source/gameengine/GameLogic/SCA_NANDController.h [new file with mode: 0644]
source/gameengine/GameLogic/SCA_NORController.cpp [new file with mode: 0644]
source/gameengine/GameLogic/SCA_NORController.h [new file with mode: 0644]
source/gameengine/GameLogic/SCA_XNORController.cpp [new file with mode: 0644]
source/gameengine/GameLogic/SCA_XNORController.h [new file with mode: 0644]
source/gameengine/GameLogic/SCA_XORController.cpp [new file with mode: 0644]
source/gameengine/GameLogic/SCA_XORController.h [new file with mode: 0644]
source/gameengine/Ketsji/KX_TouchSensor.cpp