From b844597fd23bc57aa97e231fc90eecfd6322cecc Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 7 May 2022 08:28:27 +0300 Subject: Reorganized whole architecture --- src/Venue/Venue.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/Venue/Venue.cpp (limited to 'src/Venue/Venue.cpp') diff --git a/src/Venue/Venue.cpp b/src/Venue/Venue.cpp deleted file mode 100644 index 01c6a95..0000000 --- a/src/Venue/Venue.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "Venue.h" - -Venue::Venue() : halls(), es() {} - -Venue::Venue(const Hall* halls, unsigned hallCount) : es() { - this->halls = List(halls, hallCount); -} - -Venue::Venue(const Hall* halls, unsigned hallCount, const EventSystem& es) { - this->halls = List(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& 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; -} -- cgit v1.3.1-23-gd82d