Changeset 4979 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons
- Timestamp:
- Aug 10, 2005, 4:47:23 PM (19 years ago)
- Location:
- orxonox/trunk/src/world_entities/weapons
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/projectile.cc
r4955 r4979 39 39 this->lifeCycle = 0.0; 40 40 this->lifeSpan = 0.75f; /* sec */ 41 42 this->remove(); 41 43 } 42 44 -
orxonox/trunk/src/world_entities/weapons/test_gun.cc
r4974 r4979 33 33 #include "animation3d.h" 34 34 #include "sound_engine.h" 35 36 #include "null_parent.h" 35 37 36 38 #include "fast_factory.h" … … 175 177 Projectile* pj = dynamic_cast<Projectile*>(this->getProjectileFactory()->resurrect()); 176 178 179 pj->setParent(NullParent::getInstance()); 177 180 /* 178 181 PNode* target = this->getWeaponManager()->getFixedTarget(); -
orxonox/trunk/src/world_entities/weapons/weapon.cc
r4972 r4979 127 127 this->projectileFactory = FastFactory::searchFastFactory(projectile); 128 128 if (this->projectileFactory == NULL) 129 { 130 PRINTF(1)("unable to find FastFactory for the Projectile.\n"); 129 131 return; 132 } 130 133 else 131 134 { 132 135 // grabbing Parameters from the Projectile to have them at hand here. 133 this->projectileFactory->prepare(1);134 136 Projectile* pj = dynamic_cast<Projectile*>(this->projectileFactory->resurrect()); 135 137 this->minCharge = pj->getEnergyMin(); 136 138 this->maxCharge = pj->getEnergyMax(); 137 139 this->chargeable = pj->isChageable(); 138 } 139 }; 140 this->projectileFactory->kill(pj); 141 } 142 } 140 143 141 144 /**
Note: See TracChangeset
for help on using the changeset viewer.