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

« back to all changes in this revision

Viewing changes to source/gameengine/GameLogic/SCA_RandomActuator.cpp

  • 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
2
 * Set random/camera stuff
3
3
 *
4
 
 * $Id: SCA_RandomActuator.cpp,v 1.4 2004/03/22 22:01:33 jesterking Exp $
 
4
 * $Id: SCA_RandomActuator.cpp,v 1.9 2005/03/09 19:45:59 lukep Exp $
5
5
 *
6
6
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
7
7
 *
86
86
 
87
87
 
88
88
 
89
 
bool SCA_RandomActuator::Update(double curtime,double deltatime)
 
89
bool SCA_RandomActuator::Update()
90
90
{
91
 
        bool result = false;    
 
91
        //bool result = false;  /*unused*/
92
92
        bool bNegativeEvent = IsNegativeEvent();
93
93
 
94
94
        RemoveAllEvents();
360
360
        {NULL,NULL} //Sentinel
361
361
};
362
362
 
363
 
PyObject* SCA_RandomActuator::_getattr(char* attr) {
 
363
PyObject* SCA_RandomActuator::_getattr(const STR_String& attr) {
364
364
        _getattr_up(SCA_IActuator);
365
365
}
366
366
 
464
464
        }
465
465
        
466
466
        m_distribution = KX_RANDOMACT_BOOL_CONST;
467
 
        if (paraArg == KX_TRUE) {
 
467
        if (paraArg) {
468
468
                m_parameter1 = 1;
469
469
        }
470
470
        
495
495
                return NULL;
496
496
        }
497
497
        
498
 
        m_distribution = KX_RANDOMACT_BOOL_CONST;
 
498
        m_distribution = KX_RANDOMACT_BOOL_BERNOUILLI;
499
499
        m_parameter1 = paraArg; 
500
500
        enforceConstraints();
501
501
        Py_Return;