Changeset 10085 in orxonox.OLD for branches/playability/src/util/track/track.h
- Timestamp:
- Dec 17, 2006, 6:27:52 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/util/track/track.h
r10084 r10085 9 9 #include "base_object.h" 10 10 11 // Forward Definition 12 class PNode; 13 class TiXmlElement; 14 11 15 class Track : public BaseObject 12 16 { 17 public: 18 virtual void loadParams(const TiXmlElement* root); 19 void addPoint(float x, float y, float z); 20 void addPoint(Vector newPoint); 13 21 22 void finalize(); 23 inline Vector calcPos() const; 24 inline Vector calcDir() const; 25 void tick(float dt); 14 26 27 PNode* getTrackNode(); 28 29 private: 30 TrackElement* firstTrackElem; //!< The first TrackElement that exists. 31 TrackElement* currentTrackElem; //!< The TrackElement we are working on. 32 CurveType curveType; //!< The CurveType the entire TrackSystem will have. 33 int trackElemCount; //!< The count of TrackElements that exist. 15 34 16 17 } 35 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 }; 37 38 #endif /* _TRACK_H */
Note: See TracChangeset
for help on using the changeset viewer.