Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5041 in orxonox.OLD


Ignore:
Timestamp:
Aug 16, 2005, 7:56:48 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: less output of Weapon

Location:
orxonox/trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/defs/debug.h

    r5039 r5041  
    6969#define DEBUG_MODULE_LIGHT              0
    7070#define DEBUG_MODULE_PLAYER             1
    71 #define DEBUG_MODULE_WEAPON             4
     71#define DEBUG_MODULE_WEAPON             3
    7272#define DEBUG_MODULE_MATH               0
    7373#define DEBUG_MODULE_FONT               1
  • orxonox/trunk/src/lib/coord/p_node.cc

    r5012 r5041  
    550550          delete this->toDirection;
    551551          this->toDirection = NULL;
    552           PRINTF(0)("SmoothRotate of %s finished\n", this->getName());
     552          PRINTF(5)("SmoothRotate of %s finished\n", this->getName());
    553553        }
    554554      }
  • orxonox/trunk/src/util/fast_factory.cc

    r4980 r5041  
    1616
    1717#include "fast_factory.h"
     18
    1819#include "compiler.h"
    1920#include "debug.h"
    20 #include "string.h"
     21#include <string.h>
    2122
    2223using namespace std;
     
    144145  while (tmpFac != NULL)
    145146  {
    146     printf("DELETEING ALL OF %s\n",tmpFac->getName());
     147    PRINTF(4)("DELETEING ALL OF %s\n",tmpFac->getName());
    147148    tmpFac->flush(hardFLUSH);
    148149    tmpFac = tmpFac->next;
     
    163164    if (hardFLUSH)
    164165    {
    165       PRINTF(1)("COOL\n");
    166166      delete delMember->objectPointer;
    167167    }
     
    205205  if (unlikely(this->deadList == NULL))
    206206  {
    207     PRINTF(2)("The deadList of Class %s is empty, this may be either because it has not been filled yet, or the cache is to small.\n" \
    208         "Fabricating a new %s\n", this->getName(), this->getName());
     207    PRINTF(3)("The deadList of Class %s is empty, this may be either because it has not been filled yet, or the cache is to small.\n" \
     208        "  Developer: try increasing the count with FastFactory::prepare(contHigher than actual)\n" \
     209        "    Fabricating a new %s\n", this->getName(), this->getName());
    209210    this->fabricate();
    210211    return this->resurrect();
  • orxonox/trunk/src/world_entities/player.cc

    r5037 r5041  
    9898  this->weaponMan->addWeapon(turret, 2, 2);
    9999  this->weaponMan->addWeapon(turret2, 2, 3);
    100   this->weaponMan->addWeapon(wpLeft, 3, 0);
    101   this->weaponMan->addWeapon(wpRight,3 ,1);
     100  //this->weaponMan->addWeapon(turret, 3, 0);
    102101
    103102  this->weaponMan->changeWeaponConfig(0);
     
    152151
    153152}
    154 
    155153
    156154/**
  • orxonox/trunk/src/world_entities/weapons/test_gun.cc

    r5000 r5041  
    132132
    133133  this->setProjectile(CL_TEST_BULLET);
    134   //this->getProjectileFactory()->prepare(100);
     134  this->getProjectileFactory()->prepare(20);
    135135}
    136136
  • orxonox/trunk/src/world_entities/weapons/weapon.cc

    r4979 r5041  
    191191    else
    192192    {
    193       PRINTF(4)("Failed to load sound %s to %s.\n.", soundFile, actionToChar(action));
     193      PRINTF(2)("Failed to load sound %s to %s.\n.", soundFile, actionToChar(action));
    194194    }
    195195  }
     
    197197    this->soundBuffers[action] = NULL;
    198198}
    199 
    200199
    201200/**
     
    228227}
    229228
    230 
    231229/////////////////
    232230//  EXECUTION  //
     
    246244    if (this->requestedAction != WA_NONE)
    247245      return;
    248     printf("next action will be %s in %f seconds\n", actionToChar(action), this->stateDuration);
     246    PRINTF(5)("next action will be %s in %f seconds\n", actionToChar(action), this->stateDuration);
    249247    this->requestedAction = action;
    250248  }
     
    404402}
    405403
    406 
    407404/**
    408405 * checks and Reloads the Weapon
     
    428425    this->energyLoaded += this->energy;
    429426    this->energy = 0.0;
    430     PRINT(3)("Energy empty");
    431   }
    432   else
    433   {
    434     PRINTF(3)("Loaded %f energy into the Guns Buffer\n", chargeSize);
     427    PRINT(5)("Energy depleted\n");
     428  }
     429  else
     430  {
     431    PRINTF(5)("Loaded %f energy into the Guns Buffer\n", chargeSize);
    435432    this->energyLoaded += chargeSize;
    436433    this->energy -= chargeSize;
     
    446443inline void Weapon::enterState(WeaponState state)
    447444{
    448   PRINTF(3)("ENTERING STATE %s\n", stateToChar(state));
     445  PRINTF(4)("ENTERING STATE %s\n", stateToChar(state));
    449446  // playing animation if availiable
    450447  if (likely(this->animation[state] != NULL))
     
    454451  this->currentState = state;
    455452}
    456 
    457 
    458453
    459454///////////////////
     
    513508//  if (this->projectile == NULL)
    514509  {
    515     PRINTF(2)("There was no projectile assigned to the Weapon.\n");
     510    PRINTF(1)("There was no projectile assigned to the Weapon.\n");
    516511    retVal = false;
    517512  }
     
    528523void Weapon::debug() const
    529524{
    530   PRINT(3)("Weapon-Debug %s, state: %s, nexAction: %s\n", this->getName(), Weapon::stateToChar(this->currentState), Weapon::actionToChar(requestedAction));
     525  PRINT(3)("Weapon-Debug %s, state: %s, nextAction: %s\n", this->getName(), Weapon::stateToChar(this->currentState), Weapon::actionToChar(requestedAction));
    531526  PRINT(3)("Energy: max: %f; current: %f;  loadedMax: %f; loadedCurrent: %f; chargeMin: %f, chargeMax %f\n",
    532527            this->energyMax, this->energy, this->energyLoadedMax, this->energyLoaded, this->minCharge, this->maxCharge);
Note: See TracChangeset for help on using the changeset viewer.