Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3881 in orxonox.OLD for orxonox/trunk/src/world_entities/test_gun.cc


Ignore:
Timestamp:
Apr 18, 2005, 8:05:00 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: weapon change enhanced. weapon handling is now better and safer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/test_gun.cc

    r3855 r3881  
    4040   creates a new weapon
    4141*/
    42 TestGun::TestGun (PNode* parent, Vector* coordinate, Quaternion* direction, int leftRight)
     42TestGun::TestGun (PNode* parent, const Vector& coordinate, const Quaternion& direction, int leftRight)
    4343  :  Weapon (parent, coordinate, direction)
    4444{
     
    127127void TestGun::fire()
    128128{
    129   if( this->localTime < this->idleTime)
     129  if( !this->hasWeaponIdleTimeElapsed())
    130130    {
    131131      this->weaponIdle();
     
    201201                    this->getAbsCoor ().y,
    202202                    this->getAbsCoor ().z);
    203      
     203
    204204      this->getAbsDir ().matrix (matrix);
    205205      glMultMatrixf((float*)matrix);
     
    228228                this->dummy1->getAbsCoor ().y,
    229229                this->dummy1->getAbsCoor ().z);
    230 
     230 
    231231  this->dummy1->getAbsDir ().matrix (matrix);
    232232  glMultMatrixf((float*)matrix);
Note: See TracChangeset for help on using the changeset viewer.