Changeset 3877 in orxonox.OLD for orxonox/trunk/src/world_entities/weapon.cc
- Timestamp:
- Apr 18, 2005, 5:34:39 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapon.cc
r3875 r3877 77 77 void WeaponManager::nextWeaponConf() 78 78 { 79 PRINTF(3)("Changing weapon configuration: from %i ", this->currConfID); 79 80 int i; 80 81 for(i = this->currConfID; i < W_MAX_CONFIGS && !this->configs[i].bUsed; ++i); 81 82 if( i == W_MAX_CONFIGS) this->currConfID = W_CONFIG0; 82 83 else this->currConfID = i; 84 PRINTF(3)("to %i\n", this->currConfID); 83 85 } 84 86 … … 105 107 } 106 108 109 110 void WeaponManager::tick(float sec) 111 { 112 Weapon* w; 113 for(int i = 0; i < W_MAX_SLOTS; ++i) 114 { 115 w = this->configs[this->currConfID].slots[i]; 116 if( w != NULL) w->tick(sec); 117 } 118 } 119 120 121 void WeaponManager::draw() 122 { 123 Weapon* w; 124 for(int i = 0; i < W_MAX_SLOTS; ++i) 125 { 126 w = this->configs[this->currConfID].slots[i]; 127 if( w != NULL) w->draw(); 128 } 129 } 107 130 108 131 /**
Note: See TracChangeset
for help on using the changeset viewer.