-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development 4 map #16
base: develop
Are you sure you want to change the base?
Conversation
…ng state yet, to be debugged.
@marc-gav with the boost library we need has to be added to Docker and CMakeLists. I get this error when calling Could you check Docker and CMakeLists in my last push and let me know the issue, please? |
This is how to handle the installation on Docker dowloading the repo directly from the Boost webpage:
|
… isInteraction to uint8_t
…d doesItInteract to uint8_t
Map::Map(const uint16_t& id, const uint8_t& current_type, const std::string& map_name, const std::string& bitmap_name, const tileArray& tiles, const uint16_t& dimensionX, const uint16_t& dimensionY, | ||
#include "spdlog/spdlog.h" | ||
|
||
Map::Map(const uint16_t& id, const uint8_t& current_type, const std::string& map_name, const std::string& bitmap_name, const tileArray& tiles, const uint16_t& length_x, const uint16_t& length_y, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's create an enum of possible map types
game/src/Map.cpp
Outdated
void Map::setTiles(const tileArray& tiles, const uint16_t& length_x, const uint16_t& length_y) { | ||
if (length_x == 0 || length_y == 0) { | ||
SPDLOG_ERROR("The tile matrix that is being set has a dimension of value 0. Exiting. "); | ||
throw; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
game/src/Map.cpp
Outdated
Tile tiletmp = tile_1; | ||
tile_1 = tile_2; | ||
tile_2 = tiletmp; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tile tiletmp = tile_1; | |
tile_1 = tile_2; | |
tile_2 = tiletmp; | |
std::swap(tile_1, tile_2); |
Doneness checkbox: