Changeset 4311 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- May 26, 2005, 11:03:31 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/test_gun.cc
r4289 r4311 89 89 } 90 90 91 BaseObject* p = new TestBullet(this);92 ObjectManager::getInstance()->cache(CL_TEST_BULLET, 100, *p);91 Projectile* p = new TestBullet(this); 92 ObjectManager::getInstance()->cache(CL_TEST_BULLET, 100, p); 93 93 ObjectManager::getInstance()->debug(); 94 94 } … … 143 143 } 144 144 145 Projectile* pj = new TestBullet(this); 145 Projectile* pj = (TestBullet*)ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET); 146 147 //printf( "object ref %p\n", ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET)); 148 149 //Projectile* pj = new TestBullet(this); 146 150 pj->setAbsCoor(this->getAbsCoor() + this->projectileOffset); 147 151 pj->setAbsDir(this->getAbsDir());
Note: See TracChangeset
for help on using the changeset viewer.