Rev 14 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#ifndef SSSNAKESSS_HPP
#define SSSNAKESSS_HPP
#include "point.hpp"
class SSSNAKESSS
{
public:
SSSNAKESSS();
~SSSNAKESSS();
bool init();
bool initSDL();
bool initOpenGL();
void initData();
void run();
void checkEvents();
void update();
void motion();
void draw();
void initLevel(int level);
void end();
vector<string> listDir(string dir);
private:
bool running;
SDL_Surface *screen;
map<string, Texture *> textures;
Snake *snake; // controlled snake (snakes[0])
vector<Snake *> snakes; // all snakes
vector<Point> obstacles;
};
#endif // SSSNAKESSS_HPP