Changeset 4950 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/weapon.cc
- Timestamp:
- Jul 24, 2005, 12:36:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/weapon.cc
r4949 r4950 96 96 * sets the Projectile to use for this weapon. 97 97 * @param projectile The ID of the Projectile to use 98 * @returns true, if it was sucessfull, false on error 98 99 * 99 100 * be aware, that this function does not create Factories, as this is job of Bullet-classes. … … 117 118 } 118 119 }; 120 121 /** 122 * @see bool Weapon::setProjectile(ClassID projectile) 123 * @param projectile the Name of the Projectile. 124 * @return true if 125 */ 126 bool Weapon::setProjectile(const char* projectile) 127 { 128 if (projectile == NULL) 129 return false; 130 FastFactory* tmpFac = FastFactory::searchFastFactory(projectile); 131 if (tmpFac != NULL) 132 { 133 this->setProjectile(tmpFac->getStoredID()); 134 } 135 } 119 136 120 137 /**
Note: See TracChangeset
for help on using the changeset viewer.