YAPOG  0.0.1
Yet Another Pokemon Online Game
UpdateableTimer.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_UPDATEABLETIMER_HPP
2 # define YAPOG_UPDATEABLETIMER_HPP
3 
4 # include "YAPOG/Macros.hpp"
6 
7 namespace yap
8 {
10  {
12 
13  public:
14 
15  UpdateableTimer ();
16  explicit UpdateableTimer (const Time& initTime);
17 
18  void Update (const Time& dt);
19 
20  void Reset ();
21  void Reset (const Time& init);
22 
23  const Time& GetCurrentTime () const;
24  int DelayIsComplete (const Time& delay, bool reset);
25 
26  private:
27 
29  };
30 } // namespace yap
31 
32 #endif // YAPOG_UPDATEABLETIMER_HPP