YAPOG  0.0.1
Yet Another Pokemon Online Game
Timer.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_TIMER_HPP
2 # define YAPOG_TIMER_HPP
3 
4 # include <SFML/System/Clock.hpp>
5 
6 # include "YAPOG/Macros.hpp"
8 
9 namespace yap
10 {
12  {
14 
15  public:
16 
17  Timer ();
18  explicit Timer (const Time& init);
19 
20  void Reset ();
21  void Reset (const Time& init);
22 
23  Time GetCurrentTime () const;
24  int DelayIsComplete (const Time& delay, bool reset);
25 
26  private:
27 
28  sf::Clock clock_;
30  };
31 } // namespace yap
32 
33 #endif // YAPOG_TIMER_HPP