Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Venue / Hall.cpp
diff options
context:
space:
mode:
1 files changed, 5 insertions, 0 deletions
-rw-r--r--src/Venue/Hall.cpp5
diff --git a/src/Venue/Hall.cpp b/src/Venue/Hall.cpp
index b542c9b..864ea6e 100644
--- a/src/Venue/Hall.cpp
+++ b/src/Venue/Hall.cpp
@@ -28,3 +28,8 @@ unsigned Hall::get_seatsPerRow() const {
void Hall::set_seatsPerRow(unsigned seatsPerRow) {
this->seatsPerRow = seatsPerRow;
}
+
+int Hall::compare(const Hall& other) {
+ // TODO: compare seats and rows
+ return (index > other.get_index()) - (index < other.get_index());
+}