Rev 15 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
14 | freddie | 1 | #ifndef SSSNAKESSS_HPP |
2 | #define SSSNAKESSS_HPP |
||
3 | |||
4 | #include "point.hpp" |
||
5 | |||
6 | class SSSNAKESSS |
||
7 | { |
||
8 | public: |
||
9 | SSSNAKESSS(); |
||
10 | ~SSSNAKESSS(); |
||
11 | |||
12 | bool init(); |
||
13 | bool initSDL(); |
||
14 | bool initOpenGL(); |
||
15 | void initData(); |
||
16 | |||
17 | void run(); |
||
18 | void checkEvents(); |
||
15 | tom | 19 | |
14 | freddie | 20 | void update(); |
15 | tom | 21 | void motion(); |
22 | |||
14 | freddie | 23 | void draw(); |
24 | |||
25 | void initLevel(int level); |
||
26 | |||
27 | void end(); |
||
28 | |||
29 | vector<string> listDir(string dir); |
||
30 | |||
31 | private: |
||
32 | bool running; |
||
33 | |||
34 | SDL_Surface *screen; |
||
35 | |||
36 | map<string, Texture *> textures; |
||
37 | |||
38 | Snake *snake; // controlled snake (snakes[0]) |
||
39 | vector<Snake *> snakes; // all snakes |
||
40 | |||
16 | freddie | 41 | Point food; |
14 | freddie | 42 | vector<Point> obstacles; |
43 | }; |
||
44 | |||
45 | #endif // SSSNAKESSS_HPP |