Changeset 3525 in orxonox.OLD for orxonox/branches/levelloader/src/track_manager.h
- Timestamp:
- Mar 13, 2005, 6:59:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/track_manager.h
r3523 r3525 37 37 38 38 TrackElement* findByID(unsigned int trackID); 39 TrackElement* findByName(const char* trackName); 39 40 40 41 bool isFresh; //!< If no Points where added until now … … 107 108 int trackElemCount; //!< The count of TrackElements that exist. 108 109 PNode* bindSlave; 109 TrackNamer* namer;110 110 111 void initChildren(unsigned int childCount );111 void initChildren(unsigned int childCount, SubString* names = NULL); 112 112 113 113 TrackElement* findTrackElementByID(unsigned int trackID) const; 114 TrackElement* findTrackElementByName(char* trackName) const; 114 115 115 116 public: … … 127 128 int setSavePoint(void); 128 129 void fork(unsigned int count, ...); 129 void forkV(unsigned int count, int* trackIDs );130 void forkV(unsigned int count, int* trackIDs, SubString* names = NULL); 130 131 void condition(unsigned int groupID, PathCondition cond); //!< \todo really do this!! 131 132 void join(unsigned int count, ...); … … 137 138 138 139 // Method to load track data from file 139 void loadTrack( TiX MLElement* root);140 void loadTrack( TiXmlElement* root); 140 141 141 142 // Methods to calculate the position on the Path (runtime) … … 153 154 }; 154 155 155 typedef struct156 {157 int ID;158 char* name;159 struct TrackIdentifier *next;160 } TrackIdentifier;161 162 class TrackNamer163 {164 public:165 TrackNamer() { first = NULL};166 ~TrackNamer();167 168 int getIDof( const char* name);169 const char* getNameof( int ID);170 void add( const char* name, int ID);171 172 private:173 TrackIdentifier* first;174 };175 176 156 #endif /* _TRACK_MANAGER_H */
Note: See TracChangeset
for help on using the changeset viewer.