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:
|
2021-10-18 07:08:35 +00:00
|
|
|
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;
|
2021-10-18 07:08:35 +00:00
|
|
|
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-10-18 07:08:35 +00:00
|
|
|
|
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
|