Changeset 4746 in orxonox.OLD for orxonox/trunk/src/util/track/track_manager.h
- Timestamp:
- Jul 1, 2005, 12:48:48 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.