Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10091 in orxonox.OLD for branches/playability/src/util/track/track.h


Ignore:
Timestamp:
Dec 18, 2006, 4:36:03 PM (19 years ago)
Author:
bknecht
Message:

a few more steps fusing TrackElement and TrackManager to Track.. not very far, can't really work during the afternoon. Will have some time this evening

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/util/track/track.h

    r10088 r10091  
    1212class PNode;
    1313class TiXmlElement;
    14 class TrackElement;
    1514
    1615class Track : public BaseObject
     
    2322   virtual ~Track();
    2423
    25       virtual void loadParams(const TiXmlElement* root);
    26       void addPoint(float x, float y, float z);
    27       void addPoint(Vector newPoint);
     24   virtual void loadParams(const TiXmlElement* root);
     25   void addPoint(float x, float y, float z);
     26   void addPoint(Vector newPoint);
    2827
    29       void finalize();
    30       inline Vector calcPos() const;
    31       inline Vector calcDir() const;
    32       void tick(float dt);
     28   void finalize();
     29   inline Vector calcPos() const;
     30   inline Vector calcDir() const;
     31   void tick(float dt);
    3332
    34       PNode* getTrackNode();
     33   PNode* getTrackNode();
     34     
     35   float                 startingTime;         //!< The time at which this Track begins.
     36   float                 duration;             //!< The time used to cross this Track (curve).
     37   float                 endTime;              //!< The time at which this Track ends.
     38   float                 width;                //!< Th width of the Path. This tells the Player(s), how far he(they) can go to the left/right.
    3539
    36   private:
    37     void init();
     40   int                   nodeCount;            //!< The count of points this Track has.
     41   Curve*                curve;                //!< The Curve of this Track
     42
     43 private:
     44   void init();
    3845
    3946
    4047 private:
    41       TrackElement*        firstTrackElem;         //!< The first TrackElement that exists.
    42       TrackElement*        currentTrackElem;       //!< The TrackElement we are working on.
    43       CurveType            curveType;              //!< The CurveType the entire TrackSystem will have.
    44       int                  trackElemCount;         //!< The count of TrackElements that exist.
    45 
    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.
     48   CurveType            curveType;              //!< The CurveType the entire TrackSystem will have.
     49   float                localTime;              //!< The time that has been passed since the traveling the Track.
     50   PNode*               trackNode;              //!< The node that is slave to the Track. This node will be moved while update the Track, and must NOT move itself.
    4751};
    4852
Note: See TracChangeset for help on using the changeset viewer.