void Engine::start_next_level() { map = map_list->goto_next_map(); player->set_map(map); map->set_player(player); map_panel->set_map(map); add_level_entry_msg(); }
Engine::Engine(string map_list_path) { this->map_list = new MapList(new string(map_list_path)); this->map = map_list->get_current_map(); this->player = new Player(map); this->map->set_player(player); add_level_entry_msg(); this->state = NEUTRAL; }