1 /***************************************************************************
2                           game_time.h  -  description
3                              -------------------
4     begin                : Mon Aug 12 2002
5     copyright            : (C) 2002 by Giuseppe D'Aqui'
6     email                : kumber@tiscalinet.it
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License, Version 2, as published by  *
13  *   the Free Software Foundation.                                   *
14  *                                                                         *
15  ***************************************************************************/
16 
17 #include "dephine.h"
18 
19 #ifndef GAME_TIMER_H
20 #define GAME_TIMER_H
21 
22 
23 class Game_Timer
24 {
25 private:
26 	//total countdown time
27 	Uint32 m_total_time;
28 	//last acquired time
29 	Uint32 m_last_time;
30 public:
31 	Game_Timer(Uint32 total_time = 0);
32 
33 	void update();
34 
35 	void start();
36 
37 	void set_total_time(Uint32 total_time);
38 
39 	bool is_zero();
40 
41 	const char* get_time_string();
42 
43 	Uint32 get_time();
44 
45 
46 
47 };
48 
49 #endif //GAME_TIMER_H
50