Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Oct 10, 2005, 8:17:44 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: saver Weapon-Projectile-generation and Stuff

File:
1 edited

Legend:

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

    r5355 r5356  
    134134  this->setActionSound(WA_SHOOT, "sound/shot1.wav");
    135135
    136   this->setProjectile(CL_TEST_BULLET);
    137   this->getProjectileFactory()->prepare(20);
     136  this->setProjectileType(CL_TEST_BULLET);
     137  this->prepareProjectiles(20);
    138138}
    139139
     
    178178void TestGun::fire()
    179179{
    180   Projectile* pj =  dynamic_cast<Projectile*>(this->getProjectileFactory()->resurrect());
     180  Projectile* pj =  this->getProjectile();
     181  if (pj == NULL)
     182    return;
    181183
    182184  pj->setParent(NullParent::getInstance());
Note: See TracChangeset for help on using the changeset viewer.