Subversion Repositories sssnakesss

Rev

Rev 4 | Rev 10 | 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
 
3 tom 4
struct SDL_Surface;
5
 
1 tom 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();
2 tom 18
        void checkEvents();
19
        void update();
20
        void draw();
1 tom 21
 
22
        void end();
6 tom 23
 
24
        vector<string> listDir(string dir);
1 tom 25
 
26
    private:
2 tom 27
        bool running;
3 tom 28
 
29
        SDL_Surface *screen;
6 tom 30
 
31
        map<string, Texture *> textures;
1 tom 32
};
33
 
4 tom 34
#endif // SSSNAKESSS_HPP