removed layer and objects design
fixed bug in restore_health
This commit is contained in:
@ -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};
|
||||
|
||||
|
Reference in New Issue
Block a user