diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-02 08:48:21 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-02 08:48:21 +0400 |
commit | 9da4cab9fdc63505b9f0e7f96214cc03ca9ad554 (patch) | |
tree | 13caedc75d5ae69e4f9fe74109fe32126b1cf1af /source/gameengine/GameLogic | |
parent | c93d6f460662c79f6e82be51d2064517d7c79769 (diff) |
style cleanup: comment format
Diffstat (limited to 'source/gameengine/GameLogic')
-rw-r--r-- | source/gameengine/GameLogic/SCA_IInputDevice.h | 25 | ||||
-rw-r--r-- | source/gameengine/GameLogic/SCA_LogicManager.h | 8 | ||||
-rw-r--r-- | source/gameengine/GameLogic/SCA_RandomActuator.cpp | 20 |
3 files changed, 23 insertions, 30 deletions
diff --git a/source/gameengine/GameLogic/SCA_IInputDevice.h b/source/gameengine/GameLogic/SCA_IInputDevice.h index 1a403f40955..ceb9c1e1d4f 100644 --- a/source/gameengine/GameLogic/SCA_IInputDevice.h +++ b/source/gameengine/GameLogic/SCA_IInputDevice.h @@ -269,7 +269,7 @@ public: KX_MAX_KEYS - } ; // enum + }; // enum protected: @@ -301,17 +301,18 @@ public: virtual void HookEscape(); - /* Next frame: we calculate the new key states. This goes as follows: - * - * KX_NO_INPUTSTATUS -> KX_NO_INPUTSTATUS - * KX_JUSTACTIVATED -> KX_ACTIVE - * KX_ACTIVE -> KX_ACTIVE - * KX_JUSTRELEASED -> KX_NO_INPUTSTATUS - * - * Getting new events provides the - * KX_NO_INPUTSTATUS->KX_JUSTACTIVATED and - * KX_ACTIVE->KX_JUSTRELEASED transitions. - */ + /** + * Next frame: we calculate the new key states. This goes as follows: + * + * KX_NO_INPUTSTATUS -> KX_NO_INPUTSTATUS + * KX_JUSTACTIVATED -> KX_ACTIVE + * KX_ACTIVE -> KX_ACTIVE + * KX_JUSTRELEASED -> KX_NO_INPUTSTATUS + * + * Getting new events provides the + * KX_NO_INPUTSTATUS->KX_JUSTACTIVATED and + * KX_ACTIVE->KX_JUSTRELEASED transitions. + */ virtual void NextFrame(); diff --git a/source/gameengine/GameLogic/SCA_LogicManager.h b/source/gameengine/GameLogic/SCA_LogicManager.h index 690930196b3..4d8c20065b5 100644 --- a/source/gameengine/GameLogic/SCA_LogicManager.h +++ b/source/gameengine/GameLogic/SCA_LogicManager.h @@ -52,7 +52,7 @@ using namespace std; typedef std::list<class SCA_IController*> controllerlist; typedef std::map<class SCA_ISensor*,controllerlist > sensormap_t; -/** +/** * This manager handles sensor, controllers and actuators. * logic executes each frame the following way: * find triggering sensors @@ -63,7 +63,7 @@ typedef std::map<class SCA_ISensor*,controllerlist > sensormap_t; * clear triggering sensors * clear triggered controllers * (actuators may be active during a longer timeframe) -*/ + */ #include "SCA_ILogicBrick.h" #include "SCA_IActuator.h" @@ -117,8 +117,8 @@ public: void RemoveGameObject(const STR_String& gameobjname); /** - * remove Logic Bricks from the running logicmanager - */ + * remove Logic Bricks from the running logicmanager + */ void RemoveSensor(SCA_ISensor* sensor); void RemoveController(SCA_IController* controller); void RemoveActuator(SCA_IActuator* actuator); diff --git a/source/gameengine/GameLogic/SCA_RandomActuator.cpp b/source/gameengine/GameLogic/SCA_RandomActuator.cpp index 5568072abcf..db6b4a63423 100644 --- a/source/gameengine/GameLogic/SCA_RandomActuator.cpp +++ b/source/gameengine/GameLogic/SCA_RandomActuator.cpp @@ -178,23 +178,15 @@ bool SCA_RandomActuator::Update() case KX_RANDOMACT_FLOAT_NORMAL: { /* normal (big numbers): para1 = mean, para2 = std dev */ - /* - - 070301 - nzc - Changed the termination condition. I think I - made a small mistake here, but it only affects distro's where - the seed equals 0. In that case, the algorithm locks. Let's - just guard that case separately. - - */ + /* 070301 - nzc: Changed the termination condition. I think I + * made a small mistake here, but it only affects distro's where + * the seed equals 0. In that case, the algorithm locks. Let's + * just guard that case separately. + */ float x = 0.0, y = 0.0, s = 0.0, t = 0.0; if (m_base->GetSeed() == 0) { - /* - - 070301 - nzc - Just taking the mean here seems reasonable. - - */ + /* 070301 - nzc: Just taking the mean here seems reasonable. */ tmpval = new CFloatValue(m_parameter1); } else { |