Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10698 in orxonox.OLD for trunk/src/util/track/track.h


Ignore:
Timestamp:
Jun 14, 2007, 5:33:43 PM (17 years ago)
Author:
snellen
Message:

merged adm, hud, vs-enhancements : beni's responsible for this commit. blame him!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/track/track.h

    r10498 r10698  
    1212class PNode;
    1313class TiXmlElement;
     14class ActionBox;
    1415
    1516class Track : public BaseObject
     
    4243   float                 duration;             //!< The time used to cross this Track (curve).
    4344   float                 endTime;              //!< The time at which this Track ends.
    44    float                 width;                //!< Th width of the Path. This tells the Player(s), how far he(they) can go to the left/right.
     45   float                 width;                //!< The width of the action box, next to the player.
     46   float                 height;               //!< The Height of the action box, next to the player
     47   float                 depth;                //!< Depth of the action box
     48   float                 stretch;              //!< multiplyer between w/h at player and w/h at far end of the action box
    4549
    4650   int                   nodeCount;            //!< The count of points this Track has.
    4751   Curve*                curve;                //!< The Curve of this Track
     52   
     53   ActionBox*            getActionBox(){ return this->actionBox; }
    4854
    4955 private:
    5056   void init();
    51 
    52 
     57   
    5358 private:
    5459   CurveType            curveType;              //!< The CurveType the entire TrackSystem will have.
     
    5762   int                  mode;                   //!< Defines the behaviour of the Track.
    5863   bool                 pause;                  //!< Defines if the track runs (false) or not (true)
     64   
     65   ActionBox*           actionBox;
     66   
     67   void addActionBox( float width_2, float height_2, float depth, float stretch );
     68   
     69
    5970};
    6071
Note: See TracChangeset for help on using the changeset viewer.