Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 11, 2005, 2:55:27 PM (19 years ago)
Author:
chris
Message:

orxonox/branches/levelloader: merged updated trunk structure into levelloader branch

File:
1 edited

Legend:

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

    r3365 r3499  
    1313
    1414#include "stdincl.h"
     15#include "curve.h"
    1516
     17class PNode;
    1618
    1719//! condition for choosing a certain Path. \todo implement a useful way.
     
    4547  float startingTime;        //!< The time at which this Track begins.
    4648  float duration;            //!< The time used to cross this TrackElement (curve).
     49  float endTime;             //!< The time at which this Track ends.
     50  float jumpTime;            //!< The Time this Track has to jump to its preceding Track (only >0 if Track isJoined==true)
    4751  CurveType curveType;       //!< The CurveType this will have.
    4852  int nodeCount;             //!< The count of points this TrackElement has.
    4953  char* name;                //!< A name for the Trac.
    50   Vector startPoint;         //!< A Vector that Points to the first point of the containing Curve. (for c1-steadiness)
    51   Vector startTangentPoint;  //!< A Vector that points into the direction of the previous Curve. (for c1-steadiness)
    5254  Curve* curve;              //!< The Curve of this TrackElement
    5355  int childCount;            //!< The number of Children This TrackElement has.
     
    5961//! The TrackManager handles the flow of the Players through the game.
    6062/**
    61    \todo write the methodes
    6263
    6364   <b>The TrackManager works as followed:</b> \n
     
    104105  float maxTime;                      //!< The maximal time the track has.
    105106  int trackElemCount;                 //!< The count of TrackElements that exist.
     107  PNode* bindSlave;
    106108 
    107109  void initChildren(unsigned int childCount);
     
    115117  // Methods to change the Path (initialisation)
    116118  void workOn(unsigned int trackID);
    117   void setCurveType(CurveType curveType);
     119  inline void setCurveType(CurveType curveType) { this->setCurveType (curveType, this->currentTrackElem);}
     120  void setCurveType(CurveType curveType, TrackElement* trackElem);
    118121  void setDuration(float time);
    119122  bool addPoint(Vector newPoint);
     
    126129  void join(unsigned int count, ...);
    127130  void joinV(unsigned int count, int* trackIDs);
     131  void finalize(void);
    128132
    129133  // Methods to calculate the position on the Path (runtime)
     
    134138  void choosePath(int graphID);
    135139
     140  void setBindSlave(PNode* bindSlave);
     141
    136142  // DEBUG //
    137143  void drawGraph(float dt) const;
Note: See TracChangeset for help on using the changeset viewer.