Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4746 in orxonox.OLD for orxonox/trunk/src/util/track


Ignore:
Timestamp:
Jul 1, 2005, 12:48:48 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: changed (void) → ()

Location:
orxonox/trunk/src/util/track
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/track/track_manager.cc

    r4597 r4746  
    3838   \brief initializes a TrackElement (sets the default values)
    3939*/
    40 TrackElement::TrackElement(void)
     40TrackElement::TrackElement()
    4141{
    4242  this->setClassID(CL_TRACK_ELEMENT, "TrackElement");
     
    6969    \todo eventually when deleting a TrackElement you would not like to delete all its preceding TrackElements
    7070*/
    71 TrackElement::~TrackElement(void)
     71TrackElement::~TrackElement()
    7272{
    7373  // deleting the Curve
     
    152152   You actually have to act on false!!
    153153*/
    154 bool TrackElement::backLoopCheck(void) const
     154bool TrackElement::backLoopCheck() const
    155155{
    156156  tList<const TrackElement>* trackList = new tList<const TrackElement>;
     
    216216   \brief prints out debug information about this TrackElement
    217217*/
    218 void TrackElement::debug(void) const
     218void TrackElement::debug() const
    219219{
    220220  PRINT(0)("--== TrackElement:%i ==--", this->ID);
     
    357357
    358358*/
    359 TrackManager::TrackManager(void)
     359TrackManager::TrackManager()
    360360{
    361361  this->setClassID(CL_TRACK_MANAGER, "TrackManager");
     
    456456   \brief standard destructor
    457457*/
    458 TrackManager::~TrackManager(void)
     458TrackManager::~TrackManager()
    459459{
    460460  PRINTF(3)("Destruct TrackManager\n");
     
    997997   \todo check for any inconsistencies, output errors
    998998*/
    999 void TrackManager::finalize(void)
     999void TrackManager::finalize()
    10001000{
    10011001  for (int i = 1; i<= trackElemCount ;i++)
     
    10611061   \returns the current Width of the track
    10621062*/
    1063 float TrackManager::getWidth(void) const
     1063float TrackManager::getWidth() const
    10641064{
    10651065  return this->currentTrackElem->width;
     
    11521152   \returns the main TrackNode
    11531153*/
    1154 PNode* TrackManager::getTrackNode(void)
     1154PNode* TrackManager::getTrackNode()
    11551155{
    11561156  return this->trackNode;
  • orxonox/trunk/src/util/track/track_manager.h

    r4584 r4746  
    4343{
    4444 public:
    45   TrackElement(void);
    46   ~TrackElement(void);
     45  TrackElement();
     46  ~TrackElement();
    4747
    4848  TrackElement* findByID(unsigned int trackID);
    4949  TrackElement* findByName(const char* trackName);
    50   bool backLoopCheck(void) const;
     50  bool backLoopCheck() const;
    5151
    5252  TrackElement* getChild(int childNumber) const;
     
    7878  TrackElement* history;     //!< a pointer to the last TrackElement we were on. This is if you want to walk the path backwards again.
    7979
    80   void debug(void) const;
     80  void debug() const;
    8181
    8282  // CONDITION FUNCTIONS and STUFF
     
    135135{
    136136 public:
    137   virtual ~TrackManager(void);
     137  virtual ~TrackManager();
    138138  /** \returns a Pointer to the only object of this Class */
    139   inline static TrackManager* getInstance(void) { if (!singletonRef) singletonRef = new TrackManager();  return singletonRef; };
     139  inline static TrackManager* getInstance() { if (!singletonRef) singletonRef = new TrackManager();  return singletonRef; };
    140140
    141141  bool loadParams(TiXmlElement* root);
     
    166166  void joinS(unsigned int cound, ...);
    167167  void joinV(unsigned int count, int* trackIDs);
    168   void finalize(void);
     168  void finalize();
    169169
    170170  // Methods to calculate the position on the Path (runtime)
    171   inline Vector calcPos(void) const;
    172   inline Vector calcDir(void) const;
    173   float getWidth(void) const;
     171  inline Vector calcPos() const;
     172  inline Vector calcDir() const;
     173  float getWidth() const;
    174174  void tick(float dt);
    175175  void jumpTo(float time);
     
    177177
    178178  void setBindSlave(PNode* bindSlave);
    179   PNode* getTrackNode(void);
     179  PNode* getTrackNode();
    180180
    181181  // DEBUG //
     
    184184
    185185 private:
    186   TrackManager(void);
     186  TrackManager();
    187187  void initChildren(unsigned int childCount, TrackElement* trackElem = NULL);
    188188
Note: See TracChangeset for help on using the changeset viewer.