Rev 10 | Rev 15 | Go to most recent revision | 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(); |
||
19 | void update(); |
||
20 | void draw(); |
||
21 | |||
22 | void initLevel(int level); |
||
23 | |||
24 | void end(); |
||
25 | |||
26 | vector<string> listDir(string dir); |
||
27 | |||
28 | private: |
||
29 | bool running; |
||
30 | |||
31 | SDL_Surface *screen; |
||
32 | |||
33 | map<string, Texture *> textures; |
||
34 | |||
35 | Snake *snake; // controlled snake (snakes[0]) |
||
36 | vector<Snake *> snakes; // all snakes |
||
37 | |||
38 | vector<Point> obstacles; |
||
39 | }; |
||
40 | |||
41 | #endif // SSSNAKESSS_HPP |