Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Hall.cpp
diff options
context:
space:
mode:
Commit8f501c925376f349cacf239c3670536787366a10 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 09:01:59 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 09:01:59 +0300
Files09ae3b476ef4527d8b290b0eeee1fc69f2ceec02 /src/Models/Hall.cpp
FMI-OOP-P1_TicketSystem-8f501c925376f349cacf239c3670536787366a10.tar
FMI-OOP-P1_TicketSystem-8f501c925376f349cacf239c3670536787366a10.tar.gz
FMI-OOP-P1_TicketSystem-8f501c925376f349cacf239c3670536787366a10.zip
Parent18923a8c3a87aa1d7e4ef7c033d5359baeb390c8 (diff)
Autocommit at 07.05.2022 @ 09:01
1 files changed, 12 insertions, 12 deletions
-rw-r--r--src/Models/Hall.cpp24
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());
}