Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 4, 2016, 6:19:07 PM (9 years ago)
Author:
landauf
Message:

cleanup in hover module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationHS15/src/modules/hover/TimeHUD.h

    r11026 r11041  
    3333#define _TimeHUD_H__
    3434
    35 #include "hover/HoverPrereqs.h"
     35#include "HoverPrereqs.h"
    3636
    3737#include "tools/interfaces/Tickable.h"
     
    4646
    4747            virtual void tick(float dt);
    48             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    4948            virtual void changedOwner();
    5049
    51             virtual void setRunning(bool running);
    52             virtual bool isRunning();
    53             virtual void reset();
     50            /// sets if the clock is running
     51            inline void setRunning(bool running)
     52                { this->running_ = running; }
     53            /// returns if the clock is running
     54            inline bool isRunning() const
     55                { return this->running_; }
     56
     57            void reset();
    5458
    5559        private:
    56             Hover* hoverGame;
    57             float _time;
    58             bool _running;
     60            Hover* hoverGame_;
     61            float time_;
     62            bool running_;
    5963    };
    6064}
Note: See TracChangeset for help on using the changeset viewer.