diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-16 17:05:15 +0400 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-16 17:05:15 +0400 |
commit | 2fd6e728513f46e1f313667dfcf6b3d6e09cad39 (patch) | |
tree | 97306352111268430c9c5bcd75c1638be098cc0d /source/gameengine/GameLogic/SCA_ISensor.h | |
parent | 9827bf0cd7c94273e147caae6bb254cf70aed221 (diff) |
Changed Python _getattr/_setattr methods to use const STR_String& instead of char* - makes using these methods much nicer.
Diffstat (limited to 'source/gameengine/GameLogic/SCA_ISensor.h')
-rw-r--r-- | source/gameengine/GameLogic/SCA_ISensor.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/gameengine/GameLogic/SCA_ISensor.h b/source/gameengine/GameLogic/SCA_ISensor.h index c0804cc757e..fb2dca97d06 100644 --- a/source/gameengine/GameLogic/SCA_ISensor.h +++ b/source/gameengine/GameLogic/SCA_ISensor.h @@ -46,7 +46,7 @@ class SCA_ISensor : public SCA_ILogicBrick class SCA_EventManager* m_eventmgr; bool m_triggered; - /* Pulse positive pulses? */ + /** Pulse positive pulses? */ bool m_pos_pulsemode; /** Pulse negative pulses? */ @@ -61,7 +61,7 @@ class SCA_ISensor : public SCA_ILogicBrick /** Number of ticks since the last negative pulse. */ int m_neg_ticks; - /* invert the output signal*/ + /** invert the output signal*/ bool m_invert; /** Sensor must ignore updates? */ @@ -77,7 +77,7 @@ public: ~SCA_ISensor(); virtual void ReParent(SCA_IObject* parent); - /* Because we want sensors to share some behaviour, the Activate has */ + /** Because we want sensors to share some behaviour, the Activate has */ /* an implementation on this level. It requires an evaluate on the lower */ /* level of individual sensors. Mapping the old activate()s is easy. */ /* The IsPosTrig() also has to change, to keep things consistent. */ @@ -85,7 +85,7 @@ public: virtual bool Evaluate(CValue* event) = 0; virtual bool IsPositiveTrigger(); - virtual PyObject* _getattr(char *attr); + virtual PyObject* _getattr(const STR_String& attr); virtual CValue* GetReplica()=0; /** Set parameters for the pulsing behaviour. |