Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __Player__
- #define __Player__
- #include <SDL2/SDL.h>
- #include <SDL2/SDL_image.h>
- #include <iostream>
- #include <string>
- #include <map>
- #include "GameObject.h"
- #include "InputHandler.h"
- #include "SDLGameObject.h"
- class Player : public SDLGameObject //inherit from game object
- {
- public:
- Player(const LoaderParams* pParams);
- void draw(SDL_Renderer* pRenderer);
- void clean()
- {
- GameObject::clean();
- std::cout<<"clean player";
- }
- void update();
- private:
- void handleInput();
- };
- #endif /*defined (Player) */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement