Changeset 4746 in orxonox.OLD for orxonox/trunk/src/util/track
- Timestamp:
- Jul 1, 2005, 12:48:48 PM (19 years ago)
- Location:
- orxonox/trunk/src/util/track
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/track/track_manager.cc
r4597 r4746 38 38 \brief initializes a TrackElement (sets the default values) 39 39 */ 40 TrackElement::TrackElement( void)40 TrackElement::TrackElement() 41 41 { 42 42 this->setClassID(CL_TRACK_ELEMENT, "TrackElement"); … … 69 69 \todo eventually when deleting a TrackElement you would not like to delete all its preceding TrackElements 70 70 */ 71 TrackElement::~TrackElement( void)71 TrackElement::~TrackElement() 72 72 { 73 73 // deleting the Curve … … 152 152 You actually have to act on false!! 153 153 */ 154 bool TrackElement::backLoopCheck( void) const154 bool TrackElement::backLoopCheck() const 155 155 { 156 156 tList<const TrackElement>* trackList = new tList<const TrackElement>; … … 216 216 \brief prints out debug information about this TrackElement 217 217 */ 218 void TrackElement::debug( void) const218 void TrackElement::debug() const 219 219 { 220 220 PRINT(0)("--== TrackElement:%i ==--", this->ID); … … 357 357 358 358 */ 359 TrackManager::TrackManager( void)359 TrackManager::TrackManager() 360 360 { 361 361 this->setClassID(CL_TRACK_MANAGER, "TrackManager"); … … 456 456 \brief standard destructor 457 457 */ 458 TrackManager::~TrackManager( void)458 TrackManager::~TrackManager() 459 459 { 460 460 PRINTF(3)("Destruct TrackManager\n"); … … 997 997 \todo check for any inconsistencies, output errors 998 998 */ 999 void TrackManager::finalize( void)999 void TrackManager::finalize() 1000 1000 { 1001 1001 for (int i = 1; i<= trackElemCount ;i++) … … 1061 1061 \returns the current Width of the track 1062 1062 */ 1063 float TrackManager::getWidth( void) const1063 float TrackManager::getWidth() const 1064 1064 { 1065 1065 return this->currentTrackElem->width; … … 1152 1152 \returns the main TrackNode 1153 1153 */ 1154 PNode* TrackManager::getTrackNode( void)1154 PNode* TrackManager::getTrackNode() 1155 1155 { 1156 1156 return this->trackNode; -
orxonox/trunk/src/util/track/track_manager.h
r4584 r4746 43 43 { 44 44 public: 45 TrackElement( void);46 ~TrackElement( void);45 TrackElement(); 46 ~TrackElement(); 47 47 48 48 TrackElement* findByID(unsigned int trackID); 49 49 TrackElement* findByName(const char* trackName); 50 bool backLoopCheck( void) const;50 bool backLoopCheck() const; 51 51 52 52 TrackElement* getChild(int childNumber) const; … … 78 78 TrackElement* history; //!< a pointer to the last TrackElement we were on. This is if you want to walk the path backwards again. 79 79 80 void debug( void) const;80 void debug() const; 81 81 82 82 // CONDITION FUNCTIONS and STUFF … … 135 135 { 136 136 public: 137 virtual ~TrackManager( void);137 virtual ~TrackManager(); 138 138 /** \returns a Pointer to the only object of this Class */ 139 inline static TrackManager* getInstance( void) { if (!singletonRef) singletonRef = new TrackManager(); return singletonRef; };139 inline static TrackManager* getInstance() { if (!singletonRef) singletonRef = new TrackManager(); return singletonRef; }; 140 140 141 141 bool loadParams(TiXmlElement* root); … … 166 166 void joinS(unsigned int cound, ...); 167 167 void joinV(unsigned int count, int* trackIDs); 168 void finalize( void);168 void finalize(); 169 169 170 170 // Methods to calculate the position on the Path (runtime) 171 inline Vector calcPos( void) const;172 inline Vector calcDir( void) const;173 float getWidth( void) const;171 inline Vector calcPos() const; 172 inline Vector calcDir() const; 173 float getWidth() const; 174 174 void tick(float dt); 175 175 void jumpTo(float time); … … 177 177 178 178 void setBindSlave(PNode* bindSlave); 179 PNode* getTrackNode( void);179 PNode* getTrackNode(); 180 180 181 181 // DEBUG // … … 184 184 185 185 private: 186 TrackManager( void);186 TrackManager(); 187 187 void initChildren(unsigned int childCount, TrackElement* trackElem = NULL); 188 188
Note: See TracChangeset
for help on using the changeset viewer.