Mario editor: started refactoring
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user