Changeset 3631 in orxonox.OLD for orxonox/trunk/src/world_entities/test_gun.cc
- Timestamp:
- Mar 22, 2005, 12:10:09 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/test_gun.cc
r3629 r3631 14 14 main-programmer: Patrick Boenzli 15 15 co-programmer: 16 17 18 \todo: direction in which the projectile flights 19 \todo: a target to set/hit 16 20 */ 17 21 … … 35 39 creates a new weapon 36 40 */ 37 TestGun::TestGun () : Weapon() 41 TestGun::TestGun (PNode* parent, Vector* coordinate, Quaternion* direction) 42 : Weapon (parent, coordinate, direction) 38 43 {} 39 44 … … 78 83 { 79 84 printf("TestGun::fire() - firing weapon now ---------------------------\n"); 80 //WorldEntity* pj = new Projectile(); 81 //this->worldEntities->add(pj); 85 WorldEntity* pj = new Projectile(); 86 pj->setAbsCoor( &this->getAbsCoor()); 87 pj->setAbsDir( &this->getAbsDir()); 88 this->worldEntities->add(pj); 82 89 } 83 90
Note: See TracChangeset
for help on using the changeset viewer.