Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem / Event.cpp
diff options
context:
space:
mode:
1 files changed, 5 insertions, 0 deletions
-rw-r--r--src/EventSystem/Event.cpp5
diff --git a/src/EventSystem/Event.cpp b/src/EventSystem/Event.cpp
index 6940aed..3deb58c 100644
--- a/src/EventSystem/Event.cpp
+++ b/src/EventSystem/Event.cpp
@@ -58,6 +58,11 @@ StatusCode Event::buyTicketFromReservation(const Reservation& reservation, const
return Success;
}
+bool Event::ticketIsFree(unsigned row, unsigned seat) {
+ Ticket temp(row, seat);
+ unsigned ind = tickets.findIndex(temp);
+}
+
int Event::compare(const Event& other) {
// TODO: improve
return name.compare(other.name);