removed layer and objects design

fixed bug in restore_health
This commit is contained in:
2024-07-11 21:50:10 -04:00
parent 0312986dce
commit 60f775b640
9 changed files with 8 additions and 85 deletions

View File

@ -5,14 +5,12 @@
#include <fstream>
#include <algorithm>
game_map::game_map(int lvl):
layer{layer_num::map} {
game_map::game_map(int lvl) {
level = lvl;
// TODO: randomly generate a map
}
game_map::game_map(const std::string &map_data, int lvl):
layer{layer_num::map} {
game_map::game_map(const std::string &map_data, int lvl) {
level = lvl;
std::istringstream iss{map_data};