Changeset 4947 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/test_gun.cc
- Timestamp:
- Jul 23, 2005, 11:17:27 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/test_gun.cc
r4940 r4947 112 112 this->setActionSound(WA_SHOOT, "sound/shot1.wav"); 113 113 114 this-> bulletFactory = tFastFactory<TestBullet>::getFastFactory(CL_TEST_BULLET, "TestBullet");115 this-> bulletFactory->prepare(100);114 this->setProjectile(CL_TEST_BULLET); 115 this->getProjectileFactory()->prepare(100); 116 116 } 117 117 … … 158 158 void TestGun::fire() 159 159 { 160 Projectile* pj = dynamic_cast<Projectile*>(this-> bulletFactory->resurrect());160 Projectile* pj = dynamic_cast<Projectile*>(this->getProjectileFactory()->resurrect()); 161 161 162 162 pj->setAbsCoor(this->getEmissionPoint());
Note: See TracChangeset
for help on using the changeset viewer.