Rev 6 | Rev 15 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 4 | tom | 1 | #ifndef SSSNAKESSS_HPP |
| 2 | #define SSSNAKESSS_HPP |
||
| 1 | tom | 3 | |
| 4 | class SSSNAKESSS |
||
| 5 | { |
||
| 6 | public: |
||
| 7 | SSSNAKESSS(); |
||
| 8 | ~SSSNAKESSS(); |
||
| 9 | |||
| 10 | bool init(); |
||
| 11 | bool initSDL(); |
||
| 12 | bool initOpenGL(); |
||
| 13 | void initData(); |
||
| 14 | |||
| 15 | void run(); |
||
| 2 | tom | 16 | void checkEvents(); |
| 17 | void update(); |
||
| 18 | void draw(); |
||
| 1 | tom | 19 | |
| 20 | void end(); |
||
| 6 | tom | 21 | |
| 22 | vector<string> listDir(string dir); |
||
| 1 | tom | 23 | |
| 24 | private: |
||
| 2 | tom | 25 | bool running; |
| 3 | tom | 26 | |
| 27 | SDL_Surface *screen; |
||
| 6 | tom | 28 | |
| 29 | map<string, Texture *> textures; |
||
| 10 | tom | 30 | Snake *snake; |
| 1 | tom | 31 | }; |
| 32 | |||
| 4 | tom | 33 | #endif // SSSNAKESSS_HPP |