Vchavauty

CApp.h

Jul 26th, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.09 KB | None | 0 0
  1. #ifndef _CAPP_H
  2. #define _CAPP_H
  3. #include <SDL/SDL.h>
  4. #include "Events.h"
  5. #include "Animation.h"
  6. #include "Surface.h"
  7. #include "Object.h"
  8.  
  9. class CApp : public MyEvents, Object
  10. {
  11. private :
  12.     int X; //X Size of the Main Display... It will also be used as a Maximum X position to the Character
  13.     int Y; //The same of The above but with Y Oriented
  14.     bool Running; //if This is true, the main loop will keep going. Otherwise it will close the software
  15.     SDL_Surface *Surf_Display; //This is the Main Surface
  16.     SDL_Surface *Background; //The Background Surface. I will be used so it wouldnt cause multiple characters on screen
  17. public :
  18.     CApp();
  19.     Object MainCharacter; //Object to the Main Character.
  20.     int onExecute();
  21.     bool OnInit(); //This will Initiate some values
  22.     void OnEvent(SDL_Event *Event);
  23.     void OnLoop();
  24.     void OnRender();
  25.     void OnCleanUp();
  26.     int RetrieveX();
  27.     int RetrieveY();
  28.     void OnExit();
  29.     void OnKeyDown(SDLKey sym, SDLMod mod, Uint16 unicode);
  30.     void OnKeyUp(SDLKey sym, SDLMod mod, Uint16 unicode);
  31.  
  32.  
  33. };
  34. #endif // _CAPP_H
Advertisement
Add Comment
Please, Sign In to add comment