Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Venue
diff options
context:
space:
mode:
2 files changed, 5 insertions, 0 deletions
-rw-r--r--src/Venue/Venue.cpp4
-rw-r--r--src/Venue/Venue.h1
diff --git a/src/Venue/Venue.cpp b/src/Venue/Venue.cpp
index dd29463..3185d7b 100644
--- a/src/Venue/Venue.cpp
+++ b/src/Venue/Venue.cpp
@@ -2,6 +2,10 @@
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;
diff --git a/src/Venue/Venue.h b/src/Venue/Venue.h
index b23ebb5..2f39bbc 100644
--- a/src/Venue/Venue.h
+++ b/src/Venue/Venue.h
@@ -11,6 +11,7 @@ class Venue {
public:
Venue();
+ Venue(const Hall* halls, unsigned hallCount);
Venue(const Hall* halls, unsigned hallCount, const EventSystem& es);
bool hallExists(unsigned hallIndex) const;