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