Preparation for different types of terrain
This commit is contained in:
+11
-2
@@ -4,7 +4,16 @@
|
||||
#include "../sdlpp/sdlpp_rectrenderer.hpp"
|
||||
#include <memory>
|
||||
|
||||
std::shared_ptr<SDLPP::RectangleRender> createTerrainBlock( uint64_t block_id, std::shared_ptr<SDLPP::Renderer> &renderer, bool collision = false );
|
||||
std::shared_ptr<SDLPP::RectangleRender> createTerrainBlock( uint64_t block_id, std::shared_ptr<SDLPP::Renderer> &renderer, double x, double y, bool collision = false );
|
||||
extern const std::vector<uint64_t> possibleBlocks;
|
||||
|
||||
enum BlockType {
|
||||
OVERWORLD = 0,
|
||||
UNDERWORLD = 1,
|
||||
WATER = 2,
|
||||
BOWSER = 3
|
||||
};
|
||||
|
||||
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, double x, double y, bool collision = false );
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user