Changeset 3601 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Mar 18, 2005, 2:22:57 AM (20 years ago)
- Location:
- orxonox/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/ChangeLog
r3555 r3601 1 2005-03-16 orxonox 2 Finished work on version 0.2.1-pre-alpha released 0.2.2-pre-alpha 3 1 4 2005-03-15 Patrick Boenzli <patrick@orxonox.ethz.ch> 2 5 parenting finished -
orxonox/trunk/src/defs/debug.h
r3597 r3601 17 17 \file debug.h 18 18 \brief Handles output to console for different Verbose-Modes. 19 20 There are two main modes HARD and SOFT. HARD is precessed during compileTime where SOFT is for runtime. 21 \li HARD: One can choose between different modes. see: // DEFINE_MODULES \\ 22 \li SOFT: If you want each module can have its own variable for processing. just pass it to DEBUG_MODULE_SOFT 19 23 */ 20 24 … … 38 42 extern int verbose; 39 43 44 //definitions 40 45 #ifndef MODULAR_DEBUG 41 46 #define HARD_DEBUG_LEVEL DEBUG 47 #define SOFT_DEBUG_LEVEL verbose 42 48 #else /* MODULAR_DEBUG */ 49 #ifndef DEBUG_MODULE_SOFT 50 #define SOFT_DEBUG_LEVEL verbose 51 #else /* DEBUG_MODULE_SOFT */ 52 #define SOFT_DEBUG_LEVEL DEBUG_MODULE_SOFT 53 #endif /* DEBUG_MODULE_SOFT */ 54 43 55 #ifndef DEBUG_SPECIAL_MODULE 44 56 #define HARD_DEBUG_LEVEL DEBUG … … 74 86 #if HARD_DEBUG_LEVEL >= ERR 75 87 #define PRINTF1 \ 76 if ( verbose>= ERR) \88 if (SOFT_DEBUG_LEVEL >= ERR) \ 77 89 printf("ERROR::%s:%d:", __FILE__, __LINE__) && printf 78 90 #else … … 82 94 #if HARD_DEBUG_LEVEL >= WARN 83 95 #define PRINTF2 \ 84 if ( verbose>= WARN) \96 if (SOFT_DEBUG_LEVEL >= WARN) \ 85 97 printf("WARNING::%s:%d:", __FILE__, __LINE__) && printf 86 98 … … 91 103 #if HARD_DEBUG_LEVEL >= INFO 92 104 #define PRINTF3 \ 93 if ( verbose>= INFO) \105 if (SOFT_DEBUG_LEVEL >= INFO) \ 94 106 printf("INFO::%s:%d:", __FILE__, __LINE__) && printf 95 107 #else … … 99 111 #if HARD_DEBUG_LEVEL >= DEBUGING 100 112 #define PRINTF4 \ 101 if ( verbose>= DEBUGING) \113 if (SOFT_DEBUG_LEVEL >= DEBUGING) \ 102 114 printf("DEBUG::%s:%d:", __FILE__, __LINE__) && printf 103 115 #else … … 107 119 #if HARD_DEBUG_LEVEL >= vDEBUGING 108 120 #define PRINTF5 \ 109 if ( verbose>= vDEBUGING) \121 if (SOFT_DEBUG_LEVEL >= vDEBUGING) \ 110 122 printf("VERYDEBUG::%s:%d:", __FILE__, __LINE__) && printf 111 123 #else … … 130 142 #if HARD_DEBUG_LEVEL >= ERR 131 143 #define PRINT1 \ 132 if ( verbose>= ERR) \144 if (SOFT_DEBUG_LEVEL >= ERR) \ 133 145 printf 134 146 #else … … 138 150 #if HARD_DEBUG_LEVEL >= WARN 139 151 #define PRINT2 \ 140 if ( verbose>= WARN) \152 if (SOFT_DEBUG_LEVEL >= WARN) \ 141 153 printf 142 154 … … 147 159 #if HARD_DEBUG_LEVEL >= INFO 148 160 #define PRINT3 \ 149 if ( verbose>= INFO) \161 if (SOFT_DEBUG_LEVEL >= INFO) \ 150 162 printf 151 163 #else … … 155 167 #if HARD_DEBUG_LEVEL >= DEBUGING 156 168 #define PRINT4 \ 157 if ( verbose>= DEBUGING) \169 if (SOFT_DEBUG_LEVEL >= DEBUGING) \ 158 170 printf 159 171 #else … … 163 175 #if HARD_DEBUG_LEVEL >= vDEBUGING 164 176 #define PRINT5 \ 165 if ( verbose>= vDEBUGING) \177 if (SOFT_DEBUG_LEVEL >= vDEBUGING) \ 166 178 printf("VERYDEBUG::%s:%d:", __FILE__, __LINE__) && printf 167 179 #else … … 186 198 #if HARD_DEBUG_LEVEL >= 1 187 199 #define COUT1 \ 188 if ( verbose>= 1 ) \200 if (SOFT_DEBUG_LEVEL >= 1 ) \ 189 201 cout 190 202 #else … … 194 206 #if HARD_DEBUG_LEVEL >= 2 195 207 #define COUT2 \ 196 if ( verbose>= 2 ) \208 if (SOFT_DEBUG_LEVEL >= 2 ) \ 197 209 cout 198 210 … … 203 215 #if HARD_DEBUG_LEVEL >= 3 204 216 #define COUT3 \ 205 if ( verbose>= 3 ) \217 if (SOFT_DEBUG_LEVEL >= 3 ) \ 206 218 cout 207 219 #else … … 211 223 #if HARD_DEBUG_LEVEL >= 4 212 224 #define COUT4 \ 213 if ( verbose>= 4 ) \225 if (SOFT_DEBUG_LEVEL >= 4 ) \ 214 226 cout 215 227 #else -
orxonox/trunk/src/track_manager.cc
r3599 r3601 732 732 enumElem = tmpElem->children->nextElement(); 733 733 } 734 735 736 } 737 } 734 } 735 } 736 for (int i = 1; i <=trackElemCount;i++) 737 if (this->findTrackElementByID(i)->endTime > this->maxTime) 738 this->maxTime = findTrackElementByID(i)->endTime; // very bad implemented :/ 738 739 } 739 740 … … 747 748 Vector TrackManager::calcPos() const 748 749 { 749 // PRINTF(0)("TrackElement:%d, localTime: %f\n",this->currentTrackElem->ID, this->localTime);750 750 return this->currentTrackElem->curve->calcPos((this->localTime-this->currentTrackElem->startingTime)/this->currentTrackElem->duration); 751 751 } … … 780 780 if (this->localTime <= this->firstTrackElem->duration) 781 781 this->jumpTo(this->localTime); 782 this->localTime += dt; 782 if (this->localTime <= this->maxTime) 783 this->localTime += dt; 783 784 if (this->localTime > this->currentTrackElem->endTime 784 785 && this->currentTrackElem->children)
Note: See TracChangeset
for help on using the changeset viewer.