Changeset 3685 in orxonox.OLD for orxonox/trunk/src/world_entities/test_gun.cc
- Timestamp:
- Mar 30, 2005, 11:04:39 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/test_gun.cc
r3683 r3685 42 42 : Weapon (parent, coordinate, direction) 43 43 { 44 this->idleTime = 0.2f; 44 45 } 45 46 … … 83 84 void TestGun::fire() 84 85 { 85 //printf("TestGun::fire() - firing weapon now ---------------------------\n"); 86 if( this->localTime < this->idleTime) 87 return; 88 86 89 Projectile* pj = new Projectile(this); 87 90 … … 96 99 pj->setSpeed(this->getSpeed()); 97 100 98 99 100 101 this->worldEntities->add(pj); 102 this->localTime = 0; 101 103 } 102 104 … … 128 130 */ 129 131 void TestGun::tick (float time) 130 {} 132 { 133 this->localTime += time; 134 } 131 135 132 136
Note: See TracChangeset
for help on using the changeset viewer.