Mario editor: formatting
This commit is contained in:
+12
-10
@@ -17,20 +17,22 @@ public:
|
||||
MouseVisitor() {}
|
||||
virtual void visit( const SDLPP::RenderObject &obj ) override;
|
||||
virtual void setFromId( uint64_t /*UNUSED*/ ) override {}
|
||||
virtual uint64_t getFromId() override {return 0;}
|
||||
virtual uint64_t getFromId() override {
|
||||
return 0;
|
||||
}
|
||||
uint64_t getFlags() {
|
||||
return select_flags;
|
||||
}
|
||||
bool foundEditBox() {
|
||||
return edit_box;
|
||||
}
|
||||
const SDLPP::Vec2D<int> &getEditBoxIndexes() {
|
||||
const SDLPP::Vec2D< int > &getEditBoxIndexes() {
|
||||
return edit_box_location;
|
||||
}
|
||||
bool foundToolBox() {
|
||||
return tool_box;
|
||||
}
|
||||
const SDLPP::Vec2D<int> &getToolBoxIndexes() {
|
||||
const SDLPP::Vec2D< int > &getToolBoxIndexes() {
|
||||
return tool_box_location;
|
||||
}
|
||||
virtual void setVisitorType( uint64_t type ) override {
|
||||
@@ -40,23 +42,23 @@ public:
|
||||
return _type;
|
||||
}
|
||||
|
||||
static bool moveMapLeft(uint64_t flags);
|
||||
static bool moveMapRight(uint64_t flags);
|
||||
static bool moveToolsLeft(uint64_t flags);
|
||||
static bool moveToolsRight(uint64_t flags);
|
||||
static bool moveMapLeft( uint64_t flags );
|
||||
static bool moveMapRight( uint64_t flags );
|
||||
static bool moveToolsLeft( uint64_t flags );
|
||||
static bool moveToolsRight( uint64_t flags );
|
||||
|
||||
private:
|
||||
uint64_t select_flags = 0;
|
||||
bool edit_box = false;
|
||||
bool tool_box = false;
|
||||
SDLPP::Vec2D<int> edit_box_location = {-1, -1};
|
||||
SDLPP::Vec2D<int> tool_box_location = {-1, -1};
|
||||
SDLPP::Vec2D< int > edit_box_location = { -1, -1 };
|
||||
SDLPP::Vec2D< int > tool_box_location = { -1, -1 };
|
||||
uint64_t _type;
|
||||
};
|
||||
|
||||
class ToolVisitor : public SDLPP::Visitor {
|
||||
public:
|
||||
ToolVisitor() {};
|
||||
ToolVisitor(){};
|
||||
virtual void visit( const SDLPP::RenderObject &obj ) override;
|
||||
virtual void setFromId( uint64_t id ) override {
|
||||
source_id = id;
|
||||
|
||||
Reference in New Issue
Block a user