repo.or.cz
/
sdlbotor.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial import of SDLBotor.
[sdlbotor.git]
/
Game.h
blob
96eb5887fd97022c441cd60dd60407919d1ce0dc
1
#ifndef GAME_H
2
#define GAME_H
3
4
#include <time.h>
5
#include
"SDLVideoOut.h"
6
7
namespace
botor
8
{
9
10
class
Game
11
{
12
13
SDLVideoOut
*
Video
;
14
15
SDL_Surface
*
bmp
;
16
int
x
,
y
;
17
18
bool
game_is_running
;
19
20
clock_t
nextUpdate
;
21
22
static const int
MAX_FRAMESKIP
=
10
;
23
static const int
SKIP_FRAMES
=
1000
/
CLOCKS_PER_SEC
;
24
25
26
public
:
27
28
Game
();
29
~
Game
();
30
31
void
Initialize
();
32
void
DeInitialize
();
33
34
void
Update
();
35
void
HandleInput
();
36
void
Draw
();
37
38
void
run
();
39
40
41
};
42
43
}
44
45
#endif