Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Venue / Venue.cpp
blob: 3185d7be15a44f2d18651b6ea628ccec71aa1659 (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
#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 hallIndex < halls.get_count();
}

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

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

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