game/mario/edit_box.hpp

18 lines
421 B
C++
Raw Normal View History

2021-05-07 07:43:57 +00:00
#ifndef EDIT_BOX_H
#define EDIT_BOX_H
2021-05-02 12:14:11 +00:00
#include "../sdlpp/sdlpp.hpp"
class EditBox : public SDLPP::RectangleRender {
public:
2021-10-18 07:08:35 +00:00
EditBox(int x, int y, float start_x, float start_y, int map_width,
int map_height, std::shared_ptr<SDLPP::Renderer> renderer);
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-02 12:14:11 +00:00
private:
int _x;
int _y;
};
2021-05-07 07:43:57 +00:00
#endif