Changeset 4934 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Jul 22, 2005, 6:41:46 PM (19 years ago)
- Location:
- orxonox/trunk/src/world_entities/weapons
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/test_gun.cc
r4932 r4934 111 111 112 112 this->setActionSound(WA_SHOOT, "sound/shot1.wav"); 113 114 this->bulletFactory = tFastFactory<TestBullet>::getFastFactory(CL_TEST_BULLET, "TestBullet"); 115 this->bulletFactory->prepare(100); 113 116 } 114 117 … … 155 158 void TestGun::fire() 156 159 { 157 Projectile* pj = new TestBullet();//dynamic_cast<Projectile*>(ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET & CL_MASK_LOWLEVEL_CLASS));160 Projectile* pj = this->bulletFactory->resurect();//new TestBullet();//dynamic_cast<Projectile*>(ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET & CL_MASK_LOWLEVEL_CLASS)); 158 161 // weaponSource->play(); 159 162 -
orxonox/trunk/src/world_entities/weapons/test_gun.h
r4927 r4934 30 30 class Quaternion; 31 31 class Animation3D; 32 class TestBullet; 32 33 33 34 34 35 class TestGun : public Weapon 35 {36 { 36 37 public: 37 38 TestGun (PNode* parent, const Vector& coordinate, const Quaternion& direction, int leftRight); … … 54 55 int leftRight; // this will become an enum 55 56 57 tFastFactory<TestBullet>* bulletFactory; //!< The factory for fast interaction with the TestBullet Class. 56 58 57 59 58 };59 60 61 }; 60 62 #endif /* _TEST_GUN_H */ -
orxonox/trunk/src/world_entities/weapons/weapon.cc
r4930 r4934 398 398 void Weapon::tickW(float dt) 399 399 { 400 printf("%s ", stateToChar(this->currentState));400 //printf("%s ", stateToChar(this->currentState)); 401 401 402 402 // setting up the timing properties -
orxonox/trunk/src/world_entities/weapons/weapon.h
r4930 r4934 26 26 class Animation3D; 27 27 class TiXmlElement; 28 template<class T> class tFastFactory; 28 29 29 30 //! An enumerator defining Actions a Weapon can take
Note: See TracChangeset
for help on using the changeset viewer.