Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
3 files changed, 6 insertions, 1 deletions
-rw-r--r--src/Venue/Venue.cpp2
-rw-r--r--src/Venue/Venue.h1
-rw-r--r--src/VenueConsoleUI.cpp4
diff --git a/src/Venue/Venue.cpp b/src/Venue/Venue.cpp
index 380bb69..e33af61 100644
--- a/src/Venue/Venue.cpp
+++ b/src/Venue/Venue.cpp
@@ -1,5 +1,7 @@
#include "Venue.h"
+Venue::Venue() : halls(), es() {}
+
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 b258014..8c4452a 100644
--- a/src/Venue/Venue.h
+++ b/src/Venue/Venue.h
@@ -10,6 +10,7 @@ class Venue {
EventSystem es;
public:
+ Venue();
Venue(const Hall* halls, unsigned hallCount, const EventSystem& es);
bool hallExists(const Hall& hall) const;
diff --git a/src/VenueConsoleUI.cpp b/src/VenueConsoleUI.cpp
index cb73c14..9cabbab 100644
--- a/src/VenueConsoleUI.cpp
+++ b/src/VenueConsoleUI.cpp
@@ -2,6 +2,8 @@
#include "ConsoleInterface/Menu.h"
#include "ConsoleInterface/Toolbox.hpp"
+Venue v;
+
void runUI(Venue& venue) {
-
+ v = venue;
}