Last change
on this file since 10085 was
10085,
checked in by bknecht, 17 years ago
|
filled the files with half of the needed methods and stuff
|
File size:
1.1 KB
|
Rev | Line | |
---|
[10084] | 1 | /*! |
---|
| 2 | * @file track.h |
---|
| 3 | */ |
---|
| 4 | |
---|
| 5 | #ifndef _TRACK_H_ |
---|
| 6 | #define _TRACK_H_ |
---|
| 7 | |
---|
| 8 | #include "curve.h" |
---|
| 9 | #include "base_object.h" |
---|
| 10 | |
---|
[10085] | 11 | // Forward Definition |
---|
| 12 | class PNode; |
---|
| 13 | class TiXmlElement; |
---|
| 14 | |
---|
[10084] | 15 | class Track : public BaseObject |
---|
| 16 | { |
---|
[10085] | 17 | public: |
---|
| 18 | virtual void loadParams(const TiXmlElement* root); |
---|
| 19 | void addPoint(float x, float y, float z); |
---|
| 20 | void addPoint(Vector newPoint); |
---|
[10084] | 21 | |
---|
[10085] | 22 | void finalize(); |
---|
| 23 | inline Vector calcPos() const; |
---|
| 24 | inline Vector calcDir() const; |
---|
| 25 | void tick(float dt); |
---|
[10084] | 26 | |
---|
[10085] | 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. |
---|
[10084] | 34 | |
---|
[10085] | 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
TracBrowser
for help on using the repository browser.