Changeset 3873 in orxonox.OLD for orxonox/trunk/src/world_entities/weapon.cc
- Timestamp:
- Apr 18, 2005, 4:01:42 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapon.cc
r3870 r3873 16 16 */ 17 17 18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON 18 19 19 20 #include "weapon.h" … … 61 62 return; 62 63 } 64 PRINTF(3)("Added new Weapon to Config:%i/Slot:%i\n", configID, freeSlot); 63 65 this->configs[configID].slots[freeSlot] = weapon; 64 66 return; … … 71 73 void WeaponManager::nextWeaponConf() 72 74 { 73 for(; this->currConfID < W_MAX_CONFIGS && !this->configs[this->currConfID].bUsed; this->currConfID+=1) 74 printf(""); 75 } 76 77 78 void WeaponManager::prevWeaponConf() 79 {} 80 81 82 void WeaponManager::selectConfig(int confID) 83 { 84 PRINTF(0)("There is no weapon config defined with the number W_CONF%i", confID); 85 } 86 75 int i; 76 for(i = this->currConfID; i < W_MAX_CONFIGS && !this->configs[i].bUsed; ++i); 77 if( i == W_MAX_CONFIGS) this->currConfID = W_CONFIG0; 78 else this->currConfID = i; 79 } 87 80 88 81
Note: See TracChangeset
for help on using the changeset viewer.