Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _CAPP_H
- #define _CAPP_H
- #include <SDL/SDL.h>
- #include "Events.h"
- #include "Animation.h"
- #include "Surface.h"
- #include "Object.h"
- class CApp : public MyEvents, Object
- {
- private :
- int X; //X Size of the Main Display... It will also be used as a Maximum X position to the Character
- int Y; //The same of The above but with Y Oriented
- bool Running; //if This is true, the main loop will keep going. Otherwise it will close the software
- SDL_Surface *Surf_Display; //This is the Main Surface
- SDL_Surface *Background; //The Background Surface. I will be used so it wouldnt cause multiple characters on screen
- public :
- CApp();
- Object MainCharacter; //Object to the Main Character.
- int onExecute();
- bool OnInit(); //This will Initiate some values
- void OnEvent(SDL_Event *Event);
- void OnLoop();
- void OnRender();
- void OnCleanUp();
- int RetrieveX();
- int RetrieveY();
- void OnExit();
- void OnKeyDown(SDLKey sym, SDLMod mod, Uint16 unicode);
- void OnKeyUp(SDLKey sym, SDLMod mod, Uint16 unicode);
- };
- #endif // _CAPP_H
Advertisement
Add Comment
Please, Sign In to add comment