diff options
Autocommit at 02.05.2022 @ 20:20
5 files changed, 13 insertions, 0 deletions
| -rw-r--r-- | src/.!lazygit.swo | bin | 24576 -> 24576 bytes | |||
| -rw-r--r-- | src/EventSystem/Event.h | 13 | ||||
| -rw-r--r-- | src/Venue/Hall.cpp (renamed from src/Hall.cpp) | 0 | ||||
| -rw-r--r-- | src/Venue/Hall.h (renamed from src/Hall.h) | 0 | ||||
| -rw-r--r-- | src/Venue/Venue.h (renamed from src/Venue.h) | 0 |
diff --git a/src/.!lazygit.swo b/src/.!lazygit.swo Binary files differindex 31f9b38..d472609 100644 --- a/src/.!lazygit.swo +++ b/src/.!lazygit.swo diff --git a/src/EventSystem/Event.h b/src/EventSystem/Event.h index fc717cd..81931d0 100644 --- a/src/EventSystem/Event.h +++ b/src/EventSystem/Event.h @@ -4,12 +4,25 @@ #include "../List/List.h" #include "../DateTime/DateTime.h" #include "../String/String.h" +#include "../Venue/Hall.h" #include "Ticket.h" #include "Reservation.h" +#include "StatusCodes.h" class Event { List<Ticket> tickets; List<Reservation> reservations; + DateTime time; + String name; + Hall* hall; + +public: + Event(); + Event(const Hall* hall, String name, DateTime time); + + StatusCode reserveTicket(); + StatusCode cancelReservation(); + StatusCode buyReservation(); }; #endif diff --git a/src/Hall.cpp b/src/Venue/Hall.cpp index b542c9b..b542c9b 100644 --- a/src/Hall.cpp +++ b/src/Venue/Hall.cpp diff --git a/src/Hall.h b/src/Venue/Hall.h index 7344d86..7344d86 100644 --- a/src/Hall.h +++ b/src/Venue/Hall.h diff --git a/src/Venue.h b/src/Venue/Venue.h index b48b238..b48b238 100644 --- a/src/Venue.h +++ b/src/Venue/Venue.h |
