Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 18, 2006, 1:28:49 AM (17 years ago)
Author:
patrick
Message:

added the track subsystem to the buildprocess again, integrated it into the new basobject framework and commented out big regions of code because it didn't compile.
@beni: your work now can begin :D

File:
1 edited

Legend:

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

    r10085 r10088  
    22 * @file track.h
    33 */
    4  
     4
    55#ifndef _TRACK_H_
    66#define _TRACK_H_
     
    1212class PNode;
    1313class TiXmlElement;
     14class TrackElement;
    1415
    1516class Track : public BaseObject
    1617{
     18  ObjectListDeclaration(Track);
     19
    1720 public:
     21   Track();
     22   Track(const TiXmlElement* root);
     23   virtual ~Track();
     24
    1825      virtual void loadParams(const TiXmlElement* root);
    1926      void addPoint(float x, float y, float z);
    2027      void addPoint(Vector newPoint);
    21      
     28
    2229      void finalize();
    2330      inline Vector calcPos() const;
    2431      inline Vector calcDir() const;
    2532      void tick(float dt);
    26      
     33
    2734      PNode* getTrackNode();
    28  
     35
     36  private:
     37    void init();
     38
     39
    2940 private:
    3041      TrackElement*        firstTrackElem;         //!< The first TrackElement that exists.
     
    3243      CurveType            curveType;              //!< The CurveType the entire TrackSystem will have.
    3344      int                  trackElemCount;         //!< The count of TrackElements that exist.
    34      
     45
    3546      PNode*               trackNode;              //!< The node that is slave to the Track. This node will be moved while update the Track, and must NOT move itself.
    3647};
Note: See TracChangeset for help on using the changeset viewer.