YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
"
7
# include "
YAPOG/System/Time/Time.hpp
"
8
9
namespace
yap
10
{
11
class
YAPOG_LIB
Timer
12
{
13
DISALLOW_COPY
(
Timer
);
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_
;
29
Time
init_
;
30
};
31
}
// namespace yap
32
33
#endif // YAPOG_TIMER_HPP
YAPOG
include
YAPOG
System
Time
Timer.hpp
Generated on Mon Sep 17 2012 22:24:24 for YAPOG by
1.8.1.1