From 8f501c925376f349cacf239c3670536787366a10 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 7 May 2022 09:01:59 +0300 Subject: Autocommit at 07.05.2022 @ 09:01 --- src/Models/Hall.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/Models/Hall.cpp') diff --git a/src/Models/Hall.cpp b/src/Models/Hall.cpp index 98b8cbb..c3f96fd 100644 --- a/src/Models/Hall.cpp +++ b/src/Models/Hall.cpp @@ -2,24 +2,24 @@ Hall::Hall() : Hall(0, 0, 0) {} -Hall::Hall(int index, unsigned rowCount, unsigned seatsPerRow) { - this->index = index; - this->rowCount = rowCount; +Hall::Hall(int number, unsigned rows, unsigned seatsPerRow) { + this->number = number; + this->rows = rows; this->seatsPerRow = seatsPerRow; } -int Hall::get_index() const { - return index; +int Hall::get_number() const { + return number; } -void Hall::set_index(int index) { - this->index = index; +void Hall::set_number(int number) { + this->number = number; } -unsigned Hall::get_rowCount() const { - return rowCount; +unsigned Hall::get_rows() const { + return rows; } -void Hall::set_rowCount(unsigned rowCount) { - this->rowCount = rowCount; +void Hall::set_rows(unsigned rows) { + this->rows = rows; } unsigned Hall::get_seatsPerRow() const { @@ -30,5 +30,5 @@ void Hall::set_seatsPerRow(unsigned seatsPerRow) { } int Hall::compare(const Hall& other) { - return (index > other.get_index()) - (index < other.get_index()); + return (number > other.get_number()) - (number < other.get_number()); } -- cgit v1.3.1-23-gd82d