YAPOG  0.0.1
Yet Another Pokemon Online Game
Time.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_TIME_HPP
2 # define YAPOG_TIME_HPP
3 
4 # include <SFML/System/Time.hpp>
5 
6 # include "YAPOG/Macros.hpp"
7 
8 namespace yap
9 {
11  {
12  public:
13 
14  Time ();
15  explicit Time (float seconds);
16  Time (const sf::Time& copy);
17 
18  Time (const Time& copy);
19  Time& operator= (const Time& copy);
20 
21  Time operator+ (const Time& rhs);
22  Time operator+ (float rhs);
23  Time operator- (const Time& rhs);
24  Time operator- (float rhs);
25 
26  Time& operator+= (const Time& rhs);
27  Time& operator+= (float rhs);
28  Time& operator-= (const Time& rhs);
29  Time& operator-= (float rhs);
30 
31  float GetValue () const;
32 
33  private:
34 
35  sf::Time value_;
36  };
37 } // namespace yap
38 
39 #endif // YAPOG_TIME_HPP