Changeset 3588 in orxonox.OLD for orxonox/trunk/src/track_manager.h
- Timestamp:
- Mar 17, 2005, 2:47:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/track_manager.h
r3556 r3588 17 17 class PNode; 18 18 19 // Static Definitions 20 21 //! The Default Curve-Type to set for the whole path (if not chosen otherwise). 22 #define TMAN_DEFAULT_CURVETYPE BEZIERCURVE 23 #define TMAN_DEFAULT_DURATION 10 24 25 19 26 //! A Graph-Element, that holds the curve-structure of a Level. 20 27 /** … … 31 38 bool backLoopCheck(TrackElement* trackElem); 32 39 40 // atributes 33 41 bool isFresh; //!< If no Points where added until now 34 42 bool isHotPoint; //!< If the first node is a specialPoint; … … 42 50 float endTime; //!< The time at which this Track ends. 43 51 float jumpTime; //!< The Time this Track has to jump to its preceding Track (only >0 if Track isJoined==true) 44 CurveType curveType; //!< The CurveType this will have.45 52 int nodeCount; //!< The count of points this TrackElement has. 46 char* name; //!< A name for the Trac.47 53 Curve* curve; //!< The Curve of this TrackElement 48 54 int childCount; //!< The number of Children This TrackElement has. 49 55 TrackElement** children; //!< A TrackElement can have a Tree of following TrackElements. 56 57 void setName(const char* name); 58 char* getName(void) const; 50 59 51 60 // runtime … … 63 72 int nearest(void* node); 64 73 // todo int enemyKilled(void* entity); 74 75 private: 76 char* name; //!< A name for the Trac. 77 65 78 }; 66 79 … … 108 121 TrackManager(void); 109 122 110 static TrackManager* singletonRef; //!< There may only be one TrackManager existing. 123 static TrackManager* singletonRef; //!< There may only be one TrackManager. 124 111 125 TrackElement* firstTrackElem; //!< The first TrackElement that exists. 112 126 TrackElement* currentTrackElem; //!< The TrackElement we are working on. 127 CurveType curveType; //!< The CurveType the entire TrackSystem will have. 113 128 float localTime; //!< The time that has been passed since the traveling the Track. 114 129 float maxTime; //!< The maximal time the track has.
Note: See TracChangeset
for help on using the changeset viewer.