#include "Dungeon.h" #include "RNG.h" void Dungeon::update() { } void Dungeon::add_location(Location * location) { this->locations.push_back(location); } Location * Dungeon::get_start_location() { size_t size = this->locations.size(); if (size == 0) return nullptr; size_t index = RNG::get().rand_int(size); return this->locations[index]; }