Changeset 10088 in orxonox.OLD for branches/playability/src/util/track/track.h
- Timestamp:
- Dec 18, 2006, 1:28:49 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/util/track/track.h
r10085 r10088 2 2 * @file track.h 3 3 */ 4 4 5 5 #ifndef _TRACK_H_ 6 6 #define _TRACK_H_ … … 12 12 class PNode; 13 13 class TiXmlElement; 14 class TrackElement; 14 15 15 16 class Track : public BaseObject 16 17 { 18 ObjectListDeclaration(Track); 19 17 20 public: 21 Track(); 22 Track(const TiXmlElement* root); 23 virtual ~Track(); 24 18 25 virtual void loadParams(const TiXmlElement* root); 19 26 void addPoint(float x, float y, float z); 20 27 void addPoint(Vector newPoint); 21 28 22 29 void finalize(); 23 30 inline Vector calcPos() const; 24 31 inline Vector calcDir() const; 25 32 void tick(float dt); 26 33 27 34 PNode* getTrackNode(); 28 35 36 private: 37 void init(); 38 39 29 40 private: 30 41 TrackElement* firstTrackElem; //!< The first TrackElement that exists. … … 32 43 CurveType curveType; //!< The CurveType the entire TrackSystem will have. 33 44 int trackElemCount; //!< The count of TrackElements that exist. 34 45 35 46 PNode* trackNode; //!< The node that is slave to the Track. This node will be moved while update the Track, and must NOT move itself. 36 47 };
Note: See TracChangeset
for help on using the changeset viewer.