Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 17, 2006, 6:27:52 PM (17 years ago)
Author:
bknecht
Message:

filled the files with half of the needed methods and stuff

File:
1 edited

Legend:

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

    r10084 r10085  
    99#include "base_object.h"
    1010
     11// Forward Definition
     12class PNode;
     13class TiXmlElement;
     14
    1115class Track : public BaseObject
    1216{
     17 public:
     18      virtual void loadParams(const TiXmlElement* root);
     19      void addPoint(float x, float y, float z);
     20      void addPoint(Vector newPoint);
    1321     
     22      void finalize();
     23      inline Vector calcPos() const;
     24      inline Vector calcDir() const;
     25      void tick(float dt);
    1426     
     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.
    1534     
    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.