Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3588 in orxonox.OLD for orxonox/trunk/src/track_manager.h


Ignore:
Timestamp:
Mar 17, 2005, 2:47:16 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: name-fix for TrackManager and minor fix in Curve.
There has also been a little fix in the light-class: light is a BaseObject not a World-Entity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/track_manager.h

    r3556 r3588  
    1717class PNode;
    1818
     19// Static Definitions
     20
     21//! The Default Curve-Type to set for the whole path (if not chosen otherwise).
     22#define TMAN_DEFAULT_CURVETYPE BEZIERCURVE
     23#define TMAN_DEFAULT_DURATION 10
     24
     25
    1926//! A Graph-Element, that holds the curve-structure of a Level.
    2027/**
     
    3138  bool backLoopCheck(TrackElement* trackElem);
    3239
     40  // atributes
    3341  bool isFresh;              //!< If no Points where added until now
    3442  bool isHotPoint;           //!< If the first node is a specialPoint;
     
    4250  float endTime;             //!< The time at which this Track ends.
    4351  float jumpTime;            //!< The Time this Track has to jump to its preceding Track (only >0 if Track isJoined==true)
    44   CurveType curveType;       //!< The CurveType this will have.
    4552  int nodeCount;             //!< The count of points this TrackElement has.
    46   char* name;                //!< A name for the Trac.
    4753  Curve* curve;              //!< The Curve of this TrackElement
    4854  int childCount;            //!< The number of Children This TrackElement has.
    4955  TrackElement** children;   //!< A TrackElement can have a Tree of following TrackElements.
     56
     57  void setName(const char* name);
     58  char* getName(void) const;
    5059
    5160  // runtime
     
    6372  int nearest(void* node);
    6473  // todo  int enemyKilled(void* entity);
     74
     75 private:
     76  char* name;                //!< A name for the Trac.
     77 
    6578};
    6679
     
    108121  TrackManager(void);
    109122
    110   static TrackManager* singletonRef;  //!< There may only be one TrackManager existing.
     123  static TrackManager* singletonRef;  //!< There may only be one TrackManager.
     124
    111125  TrackElement* firstTrackElem;       //!< The first TrackElement that exists.
    112126  TrackElement* currentTrackElem;     //!< The TrackElement we are working on.
     127  CurveType curveType;                //!< The CurveType the entire TrackSystem will have.
    113128  float localTime;                    //!< The time that has been passed since the traveling the Track.
    114129  float maxTime;                      //!< The maximal time the track has.
Note: See TracChangeset for help on using the changeset viewer.