Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3835 in orxonox.OLD for orxonox/trunk/src/track_manager.h


Ignore:
Timestamp:
Apr 15, 2005, 4:59:42 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: TrackManager update: TrackElement-class cleaned up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/track_manager.h

    r3608 r3835  
    3737
    3838  TrackElement* findByID(unsigned int trackID);
    39   bool backLoopCheck(TrackElement* trackElem);
     39  TrackElement* findByName(const char* trackName);
     40  bool backLoopCheck(const TrackElement* trackElem, unsigned int depth = 0) const;
    4041
    41   TrackElement* getChild(int childNumber);
     42  TrackElement* getChild(int childNumber) const;
    4243  void setName(const char* name);
    43   char* getName(void) const;
     44  const char* getName(void) const;
    4445
    4546  // atributes
     
    6566  TrackElement* history;     //!< a pointer to the last TrackElement we were on. This is if you want to walk the path backwards again.
    6667
    67   void debug(void);
     68  void debug(void) const;
    6869
    6970  // CONDITION FUNCTIONS and STUFF
    7071  void* subject;             //!< The Subject the Condition should act upon.
    71   int (TrackElement::*condFunc)(void*); //!< Pointer to the condition function
     72  int (TrackElement::*condFunc)(const void*) const; //!< Pointer to the condition function
    7273
    73   int lowest(void* nothing);
    74   int highest(void* nothing);
    75   int random(void* nothing);
     74  int lowest(const void* nothing) const;
     75  int highest(const void* nothing) const;
     76  int random(const void* nothing) const;
    7677
    77   int leftRight(void* node);
    78   int nearest(void* node);
     78  int leftRight(const void* node) const;
     79  int nearest(const void* node) const;
    7980  // todo  int enemyKilled(void* entity);
    8081
Note: See TracChangeset for help on using the changeset viewer.