diff options
Autocommit at 05.05.2022 @ 13:18
3 files changed, 6 insertions, 1 deletions
| -rw-r--r-- | src/Venue/Venue.cpp | 2 | ||||
| -rw-r--r-- | src/Venue/Venue.h | 1 | ||||
| -rw-r--r-- | src/VenueConsoleUI.cpp | 4 |
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; } |
