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 e33af61..50fc9c1 100644
--- a/src/Venue/Venue.cpp
+++ b/src/Venue/Venue.cpp
@@ -7,6 +7,10 @@ Venue::Venue(const Hall* halls, unsigned hallCount, const EventSystem& es) {
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);
}
diff --git a/src/Venue/Venue.h b/src/Venue/Venue.h
index 8c4452a..c7ac46c 100644
--- a/src/Venue/Venue.h
+++ b/src/Venue/Venue.h
@@ -13,6 +13,7 @@ public:
Venue();
Venue(const Hall* halls, unsigned hallCount, const EventSystem& es);
+ bool hallExists(unsigned hallIndex) const;
bool hallExists(const Hall& hall) const;
const List<Hall>& get_halls() const;