Mario editor: started refactoring

This commit is contained in:
2021-05-09 00:43:53 +02:00
parent 7b4c3c9697
commit b54ba5034c
8 changed files with 353 additions and 227 deletions
+9 -2
View File
@@ -5,6 +5,13 @@
#include "../sdlpp/sdlpp_geometry.hpp"
#include <memory>
struct VisitorType {
enum Value {
Terrain = 0xE001,
Modifier = 0xE002,
};
};
class MouseVisitor : public SDLPP::Visitor {
public:
MouseVisitor() {}
@@ -17,13 +24,13 @@ public:
bool foundEditBox() {
return edit_box;
}
SDLPP::Vec2D<int> getEditBoxIndexes() {
const SDLPP::Vec2D<int> &getEditBoxIndexes() {
return edit_box_location;
}
bool foundToolBox() {
return tool_box;
}
SDLPP::Vec2D<int> getToolBoxIndexes() {
const SDLPP::Vec2D<int> &getToolBoxIndexes() {
return tool_box_location;
}
virtual void setVisitorType( uint64_t type ) override {