Advertisement
Al99

Player.h

Nov 11th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. #ifndef __Player__
  2. #define __Player__
  3.  
  4. #include <SDL2/SDL.h>
  5. #include <SDL2/SDL_image.h>
  6. #include <iostream>
  7. #include <string>
  8. #include <map>
  9. #include "GameObject.h"
  10. #include "InputHandler.h"
  11. #include "SDLGameObject.h"
  12.  
  13.  
  14. class Player : public SDLGameObject //inherit from game object
  15. {
  16.     public:
  17.    
  18.     Player(const LoaderParams* pParams);
  19.    
  20.     void draw(SDL_Renderer* pRenderer);
  21.    
  22.    
  23. void clean()
  24. {
  25.     GameObject::clean();
  26.     std::cout<<"clean player";
  27. }
  28.  
  29.     void update();
  30.    
  31.  
  32.     private:
  33.    
  34.     void handleInput();
  35.  
  36. };
  37.  
  38. #endif /*defined (Player) */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement