Split sdlpp into smaller files
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#ifndef SDLPP_HPP_CIRCLE_RENDERER
|
||||
#define SDLPP_HPP_CIRCLE_RENDERER
|
||||
|
||||
#include "sdlpp_common.hpp"
|
||||
#include "sdlpp_renderobject.hpp"
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace SDLPP {
|
||||
class CircleRender : public RenderObject {
|
||||
public:
|
||||
CircleRender() = delete;
|
||||
virtual ~CircleRender(){};
|
||||
CircleRender( int x, int y, int rad, std::shared_ptr< Renderer > &r );
|
||||
CircleRender( int x, int y, int rad, std::shared_ptr< Renderer > &r,
|
||||
std::shared_ptr< Texture > &t );
|
||||
CircleRender( int x, int y, int rad, std::shared_ptr< Renderer > &r,
|
||||
const std::string &img_path );
|
||||
virtual void render();
|
||||
virtual int leftmost();
|
||||
virtual int topmost();
|
||||
virtual int collisionPushX();
|
||||
virtual int collisionPushY();
|
||||
|
||||
private:
|
||||
int x_;
|
||||
int y_;
|
||||
int rad_;
|
||||
};
|
||||
} // end of namespace SDLPP
|
||||
#endif
|
||||
Reference in New Issue
Block a user