aboutsummaryrefslogtreecommitdiff
path: root/backend/Dungeon.cpp
blob: 3de2f11ae6a7d9c7fe2f0ecf8c83899616885ea7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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];
}