Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3873 in orxonox.OLD for orxonox/trunk/src/world_entities/weapon.cc


Ignore:
Timestamp:
Apr 18, 2005, 4:01:42 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: added the weapon module to the debug system. some minor changes in the weaponmanager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/weapon.cc

    r3870 r3873  
    1616*/
    1717
     18#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON
    1819
    1920#include "weapon.h"
     
    6162          return;
    6263        }
     64      PRINTF(3)("Added new Weapon to Config:%i/Slot:%i\n", configID, freeSlot);
    6365      this->configs[configID].slots[freeSlot] = weapon;
    6466      return;
     
    7173void WeaponManager::nextWeaponConf()
    7274{
    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}
    8780
    8881
Note: See TracChangeset for help on using the changeset viewer.