25 lines
555 B
C++
25 lines
555 B
C++
#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);
|
|
virtual SDLPP::Vec2D<int> getIndexes() const;
|
|
virtual void visit(SDLPP::Visitor &visitor) override;
|
|
uint64_t getType() const {
|
|
return _type;
|
|
}
|
|
void setType(uint64_t type) {
|
|
_type = type;
|
|
}
|
|
|
|
private:
|
|
int _x;
|
|
int _y;
|
|
uint64_t _type;
|
|
};
|
|
#endif
|