Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 5, 2005, 12:53:42 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/parenting: :TrackManager: reimplemented some functions, and added some for the logic of it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/track_manager.h

    r3332 r3333  
    3333  ~TrackElement(void);
    3434
     35  void initChildren(unsigned int childCount);
     36
    3537  TrackElement* findByID(unsigned int trackID);
    3638
     
    4143  PathCondition cond;        //!< The Split Condition;
    4244  int ID;                    //!< The ID of this TrackElement
    43   float length;              //!< The time usedto cross this TrackElement (curve).
     45  float startingTime;        //!< The time at which this Track begins.
     46  float duration;            //!< The time used to cross this TrackElement (curve).
    4447  CurveType curveType;       //!< The CurveType this will have.
    4548  int nodeCount;             //!< The count of points this TrackElement has.
     
    6164    \li workOn(): changes the ID that will be altered through the changes.
    6265    \li setCurveType(): lets you set the CurveType of the Curve we are Working on. (default is BezierCurve, set this as early as possible, for this uses resources).
    63     \li setLength(): sets the length of the current path in seconds.
     66    \li setDuration(): sets the length of the current path in seconds.
    6467    \li addPoint(): adds a point to the Curve.
    6568    \li addHotPoint(): adds save/splitpoint.\n
     
    102105
    103106  TrackElement* findTrackElementByID(unsigned int trackID) const;
    104  
    105107
    106108 public:
     
    111113  void workOn(unsigned int trackID);
    112114  void setCurveType(CurveType curveType);
    113   void setLength(float time);
    114   void addPoint(Vector newPoint);
    115   void addHotPoint(Vector newPoint);
    116   void setSavePoint(void);
     115  void setDuration(float time);
     116  bool addPoint(Vector newPoint);
     117  int addHotPoint(Vector newPoint);
     118  int setSavePoint(void);
    117119  void fork(unsigned int count, ...);
    118120  void forkV(unsigned int count, int* trackIDs);
Note: See TracChangeset for help on using the changeset viewer.