1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
class Engine {
protected:
//Variables membres
static Engine* m_pEngine;
char* m_Title;
int m_Etape;
int m_Width;
int m_Height;
int m_Delay;
int m_Sleep;
int m_Exit;
SDL_Surface *Screen;
public:
//Constructeur/destructeur
Engine(char* m_bTitle, int m_bWidth, int m_bHeight);
virtual ~Engine();
//Méthodes générales
int CreatWindow(); //Creation de la fenetre
int EventKeyBoard(); //Gestion des evenement clavier
int StartGame(); //Démare le jeux, menue etc
//méthodes accesseurs
char* GetTitle() {return m_Title;}
int GetWidth() {return m_Width;}
int GetHeight() {return m_Height;}
int GetDalay() {return m_Delay;}
int GetSleep() {return m_Sleep;}
int Exit() {return m_Exit;}
}; |