Changeset 3517 in orxonox.OLD for orxonox/branches/trackManager/src/track_manager.h
- Timestamp:
- Mar 12, 2005, 12:34:15 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/trackManager/src/track_manager.h
r3515 r3517 16 16 17 17 class PNode; 18 19 //! condition for choosing a certain Path. \todo implement a useful way.20 struct PathCondition21 {22 23 };24 25 18 26 19 //! A Graph-Element, that holds the curve-structure of a Level. … … 44 37 bool isJoined; //!< If the End of the Curve is joined. 45 38 bool mainJoin; //!< If the End of the Curve is joined, and this is the one Curve the others join to. 46 PathCondition cond; //!< The Split Condition;47 39 int ID; //!< The ID of this TrackElement 48 40 float startingTime; //!< The time at which this Track begins. … … 67 59 int leftRight(void* node); 68 60 int nearest(void* node); 69 int enemyKilled(void* entity);61 // todo int enemyKilled(void* entity); 70 62 }; 71 63 64 //! the Condition to choose between the different ways of the game. 72 65 enum CONDITION {LOWEST, HIGHEST, RANDOM, LEFTRIGHT, NEAREST, ENEMYKILLED}; 73 66 … … 118 111 float maxTime; //!< The maximal time the track has. 119 112 int trackElemCount; //!< The count of TrackElements that exist. 120 PNode* bindSlave; 113 PNode* bindSlave; //!< The node that is slave to the TrackManager. This node will be moved while update the TrackManager, and must NOT move itself. 121 114 122 115 void initChildren(unsigned int childCount); … … 130 123 // Methods to change the Path (initialisation) 131 124 void workOn(unsigned int trackID); 132 inline void setCurveType(CurveType curveType) { this->setCurveType (curveType, this->currentTrackElem);} 125 /** \see setCurveType(CurveType curveType, TrackElement* trackElem); \param curveType the type of the Curve */ 126 inline void setCurveType(CurveType curveType) { this->setCurveType (curveType, this->currentTrackElem);}; 133 127 void setCurveType(CurveType curveType, TrackElement* trackElem); 134 128 void setDuration(float time); … … 140 134 void forkV(unsigned int count, int* trackIDs); 141 135 void condition(CONDITION cond, void* subject); 142 void condition(unsigned int groupID, CONDITION cond, void* subject); //!< \todo really do this!!136 void condition(unsigned int groupID, CONDITION cond, void* subject); 143 137 void join(unsigned int count, ...); 144 138 void joinV(unsigned int count, int* trackIDs);
Note: See TracChangeset
for help on using the changeset viewer.