Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Venue / Venue.cpp
blob: 01c6a95596c93c1b0ebbe8b535e3a05bb3f5424c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "Venue.h"

Venue::Venue() : halls(), es() {}

Venue::Venue(const Hall* halls, unsigned hallCount) : es() {
	this->halls = List<Hall>(halls, hallCount);
}

Venue::Venue(const Hall* halls, unsigned hallCount, const EventSystem& es) {
	this->halls = List<Hall>(halls, hallCount);
	this->es = es;
}

bool Venue::hallExists(unsigned hallIndex) const {
	return halls.contain(Hall(hallIndex, 0, 0));
}

bool Venue::hallExists(const Hall& hall) const {
	return this->halls.contain(hall);
}

const List<Hall>& Venue::get_halls() const {
	return this->halls;
}

const Hall& Venue::getHall(unsigned hallIndex) const {
	return this->halls[this->halls.findIndex(Hall(hallIndex, 0, 0))];
}

EventSystem& Venue::get_es() {
	return this->es;
}