Mario: formatting
This commit is contained in:
+18
-18
@@ -17,8 +17,8 @@ struct VisitorType {
|
||||
class MouseVisitor : public SDLPP::Visitor {
|
||||
public:
|
||||
MouseVisitor() = default;
|
||||
void visit( const SDLPP::RenderObject &obj ) override;
|
||||
void setFromId( uint64_t /*UNUSED*/ ) override {}
|
||||
void visit(const SDLPP::RenderObject &obj) override;
|
||||
void setFromId(uint64_t /*UNUSED*/) override {}
|
||||
uint64_t getFromId() const override {
|
||||
return 0;
|
||||
}
|
||||
@@ -28,16 +28,16 @@ public:
|
||||
bool foundEditBox() const {
|
||||
return edit_box;
|
||||
}
|
||||
const SDLPP::Vec2D< int > &getEditBoxIndexes() const {
|
||||
const SDLPP::Vec2D<int> &getEditBoxIndexes() const {
|
||||
return edit_box_location;
|
||||
}
|
||||
bool foundToolBox() const {
|
||||
return tool_box;
|
||||
}
|
||||
const SDLPP::Vec2D< int > &getToolBoxIndexes() const {
|
||||
const SDLPP::Vec2D<int> &getToolBoxIndexes() const {
|
||||
return tool_box_location;
|
||||
}
|
||||
void setVisitorType( uint64_t type ) override {
|
||||
void setVisitorType(uint64_t type) override {
|
||||
_type = type;
|
||||
}
|
||||
uint64_t getVisitorType() const override {
|
||||
@@ -47,21 +47,21 @@ public:
|
||||
return tool_box_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 moveModsLeft( uint64_t flags );
|
||||
static bool moveModsRight( uint64_t flags );
|
||||
static bool moveCharactersLeft( uint64_t flags );
|
||||
static bool moveCharactersRight( 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);
|
||||
static bool moveModsLeft(uint64_t flags);
|
||||
static bool moveModsRight(uint64_t flags);
|
||||
static bool moveCharactersLeft(uint64_t flags);
|
||||
static bool moveCharactersRight(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{};
|
||||
uint64_t tool_box_type = 0;
|
||||
};
|
||||
@@ -69,14 +69,14 @@ private:
|
||||
class ToolVisitor : public SDLPP::Visitor {
|
||||
public:
|
||||
ToolVisitor() = default;
|
||||
void visit( const SDLPP::RenderObject &obj ) override;
|
||||
void setFromId( uint64_t id ) override {
|
||||
void visit(const SDLPP::RenderObject &obj) override;
|
||||
void setFromId(uint64_t id) override {
|
||||
source_id = id;
|
||||
}
|
||||
uint64_t getFromId() const override {
|
||||
return source_id;
|
||||
}
|
||||
void setVisitorType( uint64_t type ) override {
|
||||
void setVisitorType(uint64_t type) override {
|
||||
_type = type;
|
||||
}
|
||||
uint64_t getVisitorType() const override {
|
||||
|
||||
Reference in New Issue
Block a user