summaryrefslogtreecommitdiff
path: root/src/game.h
blob: e9cac1422c51c5a10641659969ed81f5d27f18a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* 
 * File:   game.h
 * Author: dipesh
 *
 * Created on July 31, 2010, 6:27 PM
 */

#ifndef _GAME_H
#define	_GAME_H

#include <iosfwd>
#include <deque>


//class MessageHandler;
class Network;

extern volatile int cur_time;
extern std::string map_path;

class Game
{
    public:
        Game();
        ~Game();

        void logic();
    protected:
};
 /**
 * Returns elapsed time. (Warning: very unsafe function, it supposes the delay
 * is always < 10 seconds)
 */
int get_elapsed_time(int start_time);

#endif	/* _GAME_H */