Mario editor: started refactoring
This commit is contained in:
+24
-11
@@ -17,19 +17,32 @@ private:
|
||||
|
||||
extern const std::vector<uint64_t> possibleBlocks;
|
||||
|
||||
enum BlockType {
|
||||
OVERWORLD = 0,
|
||||
UNDERWORLD = 1,
|
||||
WATER = 2,
|
||||
BOWSER = 4
|
||||
struct LandType {
|
||||
enum Value {
|
||||
OVERWORLD = 0,
|
||||
UNDERWORLD = 1,
|
||||
WATER = 2,
|
||||
BOWSER = 4
|
||||
};
|
||||
};
|
||||
|
||||
std::shared_ptr<SDLPP::RectangleRender> createTerrainBlock( uint64_t block_id, BlockType type, std::shared_ptr<SDLPP::Renderer> &renderer, bool collision = false );
|
||||
std::shared_ptr<SDLPP::RectangleRender> createTerrainBlock( uint64_t block_id, BlockType type, std::shared_ptr<SDLPP::Renderer> &renderer, int x, int y, bool collision = false );
|
||||
std::shared_ptr<SDLPP::RectangleRender> createTerrainBlock( uint64_t block_id, BlockType type, std::shared_ptr<SDLPP::Renderer> &renderer, std::shared_ptr<SDLPP::Texture> texture, bool collision = false );
|
||||
std::shared_ptr<SDLPP::RectangleRender> createTerrainBlock( uint64_t block_id, BlockType type, std::shared_ptr<SDLPP::Renderer> &renderer, int x, int y, std::shared_ptr<SDLPP::Texture> texture, bool collision = false );
|
||||
std::shared_ptr<SDLPP::RectangleRender> createMario( BlockType type, std::shared_ptr<SDLPP::Renderer> &renderer, int x, int y );
|
||||
struct BlockRole {
|
||||
enum Value {
|
||||
TERRAIN,
|
||||
MODIFIER,
|
||||
CHARACTER,
|
||||
MARIO,
|
||||
};
|
||||
};
|
||||
|
||||
SDL_Rect getSourceRectByID( uint64_t id, BlockType type );
|
||||
std::shared_ptr<SDLPP::RectangleRender> createTerrainBlock( uint64_t block_id, LandType::Value type, std::shared_ptr<SDLPP::Renderer> &renderer, bool collision = false );
|
||||
std::shared_ptr<SDLPP::RectangleRender> createTerrainBlock( uint64_t block_id, LandType::Value type, std::shared_ptr<SDLPP::Renderer> &renderer, int x, int y, bool collision = false );
|
||||
std::shared_ptr<SDLPP::RectangleRender> createTerrainBlock( uint64_t block_id, LandType::Value type, std::shared_ptr<SDLPP::Renderer> &renderer, std::shared_ptr<SDLPP::Texture> texture, bool collision = false );
|
||||
std::shared_ptr<SDLPP::RectangleRender> createTerrainBlock( uint64_t block_id, LandType::Value type, std::shared_ptr<SDLPP::Renderer> &renderer, int x, int y, std::shared_ptr<SDLPP::Texture> texture, bool collision = false );
|
||||
std::shared_ptr<SDLPP::RectangleRender> createMario( LandType::Value type, std::shared_ptr<SDLPP::Renderer> &renderer, int x, int y );
|
||||
|
||||
SDL_Rect getSourceRectByID( uint64_t id, LandType::Value type );
|
||||
|
||||
enum BlockRole::Value getBlockRole(uint64_t id);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user