Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __SDLGameObject__
- #define __SDLGameObject__
- #include <SDL2/SDL.h>
- #include <string>
- #include "Game.h"
- #include "GameObject.h"
- #include "LoaderParams.h"
- #include "Vector2d.h"
- class SDLGameObject : public GameObject
- {
- public:
- SDLGameObject (const LoaderParams* pParams);
- virtual void draw(SDL_Renderer* pRenderer);
- virtual void update();
- virtual void clean();
- protected:
- Vector2d m_position;
- int m_width;
- int m_height;
- int m_currentRow;
- int m_currentFrame;
- std::string m_textureID;
- Vector2d m_velocity;
- Vector2d m_acceleration;
- };
- #endif /*defined (SDLGameObject) */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement