Changeset 3433 in orxonox.OLD for orxonox/trunk/src/track_manager.h
- Timestamp:
- Mar 1, 2005, 2:36:56 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/track_manager.h
r3365 r3433 14 14 #include "stdincl.h" 15 15 16 class PNode; 16 17 17 18 //! condition for choosing a certain Path. \todo implement a useful way. … … 45 46 float startingTime; //!< The time at which this Track begins. 46 47 float duration; //!< The time used to cross this TrackElement (curve). 48 float endTime; //!< The time at which this Track ends. 49 float jumpTime; //!< The Time this Track has to jump to its preceding Track (only >0 if Track isJoined==true) 47 50 CurveType curveType; //!< The CurveType this will have. 48 51 int nodeCount; //!< The count of points this TrackElement has. 49 52 char* name; //!< A name for the Trac. 50 Vector startPoint; //!< A Vector that Points to the first point of the containing Curve. (for c1-steadiness)51 Vector startTangentPoint; //!< A Vector that points into the direction of the previous Curve. (for c1-steadiness)52 53 Curve* curve; //!< The Curve of this TrackElement 53 54 int childCount; //!< The number of Children This TrackElement has. … … 59 60 //! The TrackManager handles the flow of the Players through the game. 60 61 /** 61 \todo write the methodes62 62 63 63 <b>The TrackManager works as followed:</b> \n … … 104 104 float maxTime; //!< The maximal time the track has. 105 105 int trackElemCount; //!< The count of TrackElements that exist. 106 PNode* bindSlave; 106 107 107 108 void initChildren(unsigned int childCount); … … 115 116 // Methods to change the Path (initialisation) 116 117 void workOn(unsigned int trackID); 117 void setCurveType(CurveType curveType); 118 inline void setCurveType(CurveType curveType) { this->setCurveType (curveType, this->currentTrackElem);} 119 void setCurveType(CurveType curveType, TrackElement* trackElem); 118 120 void setDuration(float time); 119 121 bool addPoint(Vector newPoint); … … 126 128 void join(unsigned int count, ...); 127 129 void joinV(unsigned int count, int* trackIDs); 130 void finalize(void); 128 131 129 132 // Methods to calculate the position on the Path (runtime) … … 134 137 void choosePath(int graphID); 135 138 139 void setBindSlave(PNode* bindSlave); 140 136 141 // DEBUG // 137 142 void drawGraph(float dt) const;
Note: See TracChangeset
for help on using the changeset viewer.