Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 23, 2005, 11:17:27 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: ProjectileFactory now handled in Weapon-class

File:
1 edited

Legend:

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

    r4940 r4947  
    112112  this->setActionSound(WA_SHOOT, "sound/shot1.wav");
    113113
    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);
    116116}
    117117
     
    158158void TestGun::fire()
    159159{
    160   Projectile* pj =  dynamic_cast<Projectile*>(this->bulletFactory->resurrect());
     160  Projectile* pj =  dynamic_cast<Projectile*>(this->getProjectileFactory()->resurrect());
    161161
    162162  pj->setAbsCoor(this->getEmissionPoint());
Note: See TracChangeset for help on using the changeset viewer.