~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/gameengine/GameLogic/SCA_ISensor.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: SCA_ISensor.h,v 1.6 2004/03/22 22:01:33 jesterking Exp $
 
2
 * $Id: SCA_ISensor.h,v 1.7 2004/05/16 13:05:12 kester Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
46
46
        class SCA_EventManager* m_eventmgr;
47
47
        bool    m_triggered;
48
48
 
49
 
        /* Pulse positive  pulses? */
 
49
        /** Pulse positive  pulses? */
50
50
        bool m_pos_pulsemode;
51
51
 
52
52
        /** Pulse negative pulses? */
61
61
        /** Number of ticks since the last negative pulse. */
62
62
        int m_neg_ticks;
63
63
 
64
 
        /* invert the output signal*/
 
64
        /** invert the output signal*/
65
65
        bool m_invert;
66
66
 
67
67
        /** Sensor must ignore updates? */
77
77
        ~SCA_ISensor();
78
78
        virtual void    ReParent(SCA_IObject* parent);
79
79
 
80
 
        /* Because we want sensors to share some behaviour, the Activate has     */
 
80
        /** Because we want sensors to share some behaviour, the Activate has     */
81
81
        /* an implementation on this level. It requires an evaluate on the lower */
82
82
        /* level of individual sensors. Mapping the old activate()s is easy.     */
83
83
        /* The IsPosTrig() also has to change, to keep things consistent.        */
85
85
        virtual bool Evaluate(CValue* event) = 0;
86
86
        virtual bool IsPositiveTrigger();
87
87
        
88
 
        virtual PyObject*  _getattr(char *attr);
 
88
        virtual PyObject* _getattr(const STR_String& attr);
89
89
        virtual CValue* GetReplica()=0;
90
90
 
91
91
        /** Set parameters for the pulsing behaviour.