- Timestamp:
- Jul 19, 2005, 5:27:30 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/weapon.cc
r4893 r4894 23 23 #include "projectile.h" 24 24 25 #include "class_list.h" 25 26 #include "load_param.h" 26 27 #include "vector.h" … … 53 54 { 54 55 for (int i = 0; i < WS_STATE_COUNT; i++) 55 if (this->animation[i] )56 if (this->animation[i] && ClassList::exists(animation[i], CL_ANIMATION)) //!< @todo this should check animation3D 56 57 delete this->animation[i]; 57 58 for (int i = 0; i < WA_ACTION_COUNT; i++) … … 216 217 { 217 218 case WA_SHOOT: 218 this->fireW();219 return this->fireW(); 219 220 break; 220 221 case WA_CHARGE: 221 this->chargeW();222 return this->chargeW(); 222 223 break; 223 224 case WA_RELOAD: 224 this->reloadW();225 return this->reloadW(); 225 226 break; 226 227 case WA_DEACTIVATE: 227 this->deactivateW();228 return this->deactivateW(); 228 229 break; 229 230 case WA_ACTIVATE: 230 this->activateW();231 break; 232 } 233 } 234 235 236 /** 237 * 238 * @return 231 return this->activateW(); 232 break; 233 } 234 } 235 236 237 /** 238 * checks and activates the Weapon. 239 * @return true on success. 239 240 */ 240 241 bool Weapon::activateW() … … 259 260 260 261 /** 261 * 262 * @return 262 * checks and deactivates the Weapon 263 * @return true on success. 263 264 */ 264 265 bool Weapon::deactivateW() … … 282 283 283 284 /** 284 * 285 * @return 285 * checks and charges the Weapon 286 * @return true on success. 286 287 */ 287 288 bool Weapon::chargeW() … … 310 311 311 312 /** 312 * 313 * @return 313 * checks and fires the Weapon 314 * @return true on success. 314 315 */ 315 316 bool Weapon::fireW() … … 339 340 340 341 /** 341 * 342 * @return 342 * checks and Reloads the Weapon 343 * @return true on success. 343 344 */ 344 345 bool Weapon::reloadW()
Note: See TracChangeset
for help on using the changeset viewer.