Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 13, 2005, 6:59:20 PM (19 years ago)
Author:
chris
Message:

orxonox/branches/levelloader: removed excess class usage adn messed with makefile definitions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelloader/src/track_manager.h

    r3523 r3525  
    3737
    3838  TrackElement* findByID(unsigned int trackID);
     39  TrackElement* findByName(const char* trackName);
    3940
    4041  bool isFresh;              //!< If no Points where added until now
     
    107108  int trackElemCount;                 //!< The count of TrackElements that exist.
    108109  PNode* bindSlave;
    109         TrackNamer* namer;
    110110 
    111   void initChildren(unsigned int childCount);
     111  void initChildren(unsigned int childCount, SubString* names = NULL);
    112112
    113113  TrackElement* findTrackElementByID(unsigned int trackID) const;
     114  TrackElement* findTrackElementByName(char* trackName) const;
    114115 
    115116 public:
     
    127128  int setSavePoint(void);
    128129  void fork(unsigned int count, ...);
    129   void forkV(unsigned int count, int* trackIDs);
     130  void forkV(unsigned int count, int* trackIDs, SubString* names = NULL);
    130131  void condition(unsigned int groupID, PathCondition cond); //!< \todo really do this!!
    131132  void join(unsigned int count, ...);
     
    137138
    138139        // Method to load track data from file
    139         void loadTrack( TiXMLElement* root);
     140        void loadTrack( TiXmlElement* root);
    140141
    141142  // Methods to calculate the position on the Path (runtime)
     
    153154};
    154155
    155 typedef struct
    156 {
    157         int ID;
    158         char* name;
    159         struct TrackIdentifier *next;
    160 } TrackIdentifier;
    161 
    162 class TrackNamer
    163 {
    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 
    176156#endif /* _TRACK_MANAGER_H */
Note: See TracChangeset for help on using the changeset viewer.