Files
game/mario/blocks.hpp
T

23 lines
1.1 KiB
C++
Raw Normal View History

2021-04-25 22:42:55 +02:00
#ifndef BLOCKS_H
#define BLOCKS_H
#include "../sdlpp/sdlpp_rectrenderer.hpp"
#include <memory>
2021-04-30 09:10:58 +02:00
extern const std::vector<uint64_t> possibleBlocks;
enum BlockType {
OVERWORLD = 0,
UNDERWORLD = 1,
WATER = 2,
2021-04-30 23:12:53 +02:00
BOWSER = 4
2021-04-30 09:10:58 +02:00
};
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 );
2021-05-01 21:55:43 +02:00
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, double x, double y, std::shared_ptr<SDLPP::Texture> texture, bool collision = false );
std::shared_ptr<SDLPP::RectangleRender> createMario( BlockType type, std::shared_ptr<SDLPP::Renderer> &renderer, double x, double y );
2021-04-25 22:42:55 +02:00
#endif