Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 12, 2005, 3:11:30 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/trackManager: now ability to set LEFT-RIGHT decision for nodes

File:
1 edited

Legend:

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

    r3514 r3515  
    5757  TrackElement** children;   //!< A TrackElement can have a Tree of following TrackElements.
    5858
    59   // CONDITION FUNCTIONS
     59  // CONDITION FUNCTIONS and STUFF
     60  void* subject;             //!< The Subject the Condition should act upon.
    6061  int (TrackElement::*condFunc)(void*); //!< Pointer to the condition function
    6162
     
    6364  int highest(void* nothing);
    6465  int random(void* nothing);
     66
     67  int leftRight(void* node);
     68  int nearest(void* node);
     69  int enemyKilled(void* entity);
    6570};
    6671
    67 
     72enum CONDITION {LOWEST, HIGHEST, RANDOM, LEFTRIGHT, NEAREST, ENEMYKILLED};
    6873
    6974//! The TrackManager handles the flow of the Players through the game.
     
    134139  void fork(unsigned int count, ...);
    135140  void forkV(unsigned int count, int* trackIDs);
    136   void condition(unsigned int groupID, PathCondition cond); //!< \todo really do this!!
     141  void condition(CONDITION cond, void* subject);
     142  void condition(unsigned int groupID, CONDITION cond, void* subject); //!< \todo really do this!!
    137143  void join(unsigned int count, ...);
    138144  void joinV(unsigned int count, int* trackIDs);
Note: See TracChangeset for help on using the changeset viewer.