Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3591 in orxonox.OLD


Ignore:
Timestamp:
Mar 17, 2005, 2:04:02 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: debug.h some cleanup

Location:
orxonox/trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/command_node.cc

    r3586 r3591  
    1414*/
    1515
     16#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_COMMAND_NODE
    1617
    1718#include "command_node.h"
     
    112113  FILE* stream;
    113114 
    114   printf("Loading key bindings from %s\n", filename);
     115  PRINTF(4)("Loading key bindings from %s\n", filename);
    115116 
    116117  if( filename == NULL) filename = DEFAULT_KEYBIND_FILE;
     
    127128  if( parser.getSection ("Bindings") == -1)
    128129    {
    129       printf("Could not find key bindings in %s\n", filename);
     130      PRINTF(1)("Could not find key bindings in %s\n", filename);
    130131      return;
    131132    }
     
    145146        {
    146147        case 0:
    147           printf("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), valuebuf);
     148          PRINTF(4)("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), valuebuf);
    148149          strcpy (aliases->keys[index[1]], valuebuf);
    149150          break;
    150151        case 1:
    151           printf("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), valuebuf);
     152          PRINTF(4)("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), valuebuf);
    152153          strcpy (aliases->buttons[index[1]], valuebuf);
    153154          break;
     
    214215  while( SDL_PollEvent (&event))
    215216    {
    216       printf("CommandNode::processLocal() =========================got Event\n");
     217      PRINTF(3)("CommandNode::processLocal() =========================got Event\n");
    217218      memset (cmd.cmd, 0, CMD_LENGHT);
    218219      switch( event.type)
  • orxonox/trunk/src/defs/debug.h

    r3590 r3591  
    3939extern int verbose;
    4040#else
    41 // DEFINE MODULES
     41// DEFINE MODULES \\
     42#define DEBUG_MODULE_ORXONOX            0
    4243#define DEBUG_MODULE_WORLD              0
    4344#define DEBUG_MODULE_PNODE              0
    44 #define DEBUG_MODULE_TRACKMANAGER       0
     45#define DEBUG_MODULE_WORLD_ENTITY       0
     46#define DEBUG_MODULE_COMMAND_NODE       0
     47
     48#define DEBUG_MODULE_IMPORTER           0
     49#define DEBUG_MODULE_TRACK_MANAGER      0
    4550#define DEBUG_MODULE_LIGHT              0
    46 #define DEBUG_MODULE_WORLD_ENTITY       0
    4751#define DEBUG_MODULE_PLAYER             0
    48 #define DEBUG_MODULE_PNODE              0
    49 #define DEBUG_MODULE_IMPORTER           0
    5052#define DEBUG_MODULE_MATH               0
     53
     54#define DEBUG_MODULE_NULL_PARENT        0
    5155
    5256#define verbose DEBUG_SPECIAL_MODULE
  • orxonox/trunk/src/lib/coord/null_parent.cc

    r3565 r3591  
    1616*/
    1717
     18#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_NULL_PARENT
    1819
    1920#include "null_parent.h"
     
    3839NullParent::NullParent () : PNode (new Vector(0,0,0), NULL)
    3940{
    40   printf("NullParent::NullParent() - making new NullParent, there can only be one..\n");
     41  PRINTF(4)("NullParent::NullParent() - making new NullParent, there can only be one..\n");
    4142  this->parent = this;
    4243  this->mode = PNODE_ALL;
     
    7677{
    7778
    78   printf ("NullParent::update - (%f, %f, %f)\n", this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z);
     79  PRINTF(4)("NullParent::update - (%f, %f, %f)\n", this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z);
    7980  this->absCoordinate = this->relCoordinate;
    8081  this->absDirection = parent->getAbsDir () * this->relDirection;
  • orxonox/trunk/src/lib/coord/p_node.cc

    r3590 r3591  
    1919
    2020#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PNODE
    21 
    2221
    2322#include "p_node.h"
     
    413412  PRINTF(2)("PNode::update - %s - (%f, %f, %f)\n", this->objectName, this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z);
    414413  // printf("%s", this->objectName);
    415   printf("%d:", this->mode);
    416414  if(this->mode & PNODE_MOVEMENT )
    417415    {
  • orxonox/trunk/src/track_manager.cc

    r3590 r3591  
    1414*/
    1515
    16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_TRACKMANAGER
     16#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_TRACK_MANAGER
    1717
    1818#include "track_manager.h"
     
    672672{
    673673  dt /= 1000;
    674   printf("CurrentTrackID: %d, LocalTime is: %f, timestep is: %f\n", this->currentTrackElem->ID, this->localTime, dt);
     674  PRINTF(4)("CurrentTrackID: %d, LocalTime is: %f, timestep is: %f\n", this->currentTrackElem->ID, this->localTime, dt);
    675675  if (this->localTime <= this->firstTrackElem->duration)
    676676    this->jumpTo(this->localTime);
Note: See TracChangeset for help on using the changeset viewer.