game/mario/tool_box.hpp

23 lines
544 B
C++
Raw Normal View History

2021-05-07 07:43:57 +00:00
#ifndef TOOL_BOX_H
#define TOOL_BOX_H
#include "../sdlpp/sdlpp.hpp"
class ToolBox : public SDLPP::RectangleRender {
public:
ToolBox(int x, int y, double start_x, double start_y, std::shared_ptr<SDLPP::Renderer> renderer, bool coliders = true);
2021-05-07 07:43:57 +00:00
virtual SDLPP::Vec2D<int> getIndexes() const;
virtual void visit( SDLPP::Visitor &visitor ) override;
2021-05-28 17:51:02 +00:00
uint64_t getType() const {
return _type;
}
void setType(uint64_t type) {
_type = type;
}
2021-05-07 07:43:57 +00:00
private:
int _x;
int _y;
2021-05-28 17:51:02 +00:00
uint64_t _type;
2021-05-07 07:43:57 +00:00
};
#endif