diff --git a/src/lib.cpp b/src/lib.cpp index cb9ef08..1cdc3db 100644 --- a/src/lib.cpp +++ b/src/lib.cpp @@ -23,9 +23,9 @@ void run() { const Action vote = Action("vote", true); Role role1({vote, kill, heal}); Role role2({heal}); - Event event1 = Event("Event 1", 1710087355, 1, true, {vote}, {}, {}); - Event event2 = Event("Event 2", 1710087363, 1, true, {}, {kill}, {}); - Event event3 = Event("Event 3", 1710087369, 1, true, {}, {}, {kill}); + Event event1 = Event("Event 1", 1710087355, 1, true, {}, {}); + Event event2 = Event("Event 2", 1710087363, 1, true, {kill}, {}); + Event event3 = Event("Event 3", 1710087369, 1, true, {}, {kill}); std::vector relatedEvents({event2, event3}); Player player1 = Player("player1", role1, PlayerStatus::ALIVE); Player player2 = Player("player2", role1, PlayerStatus::ALIVE); diff --git a/src/prep/prep.cpp b/src/prep/prep.cpp index f64a478..93580fe 100644 --- a/src/prep/prep.cpp +++ b/src/prep/prep.cpp @@ -46,7 +46,6 @@ Event::Event(std::string title, uint32_t utcTimestampCreatedAt, uint32_t numberNight, bool isVisible, - std::vector causedBy, std::vector prohibits, std::vector allows): title(title), @@ -54,9 +53,6 @@ Event::Event(std::string title, numberNight(numberNight), isVisible(isVisible) { this->utcTimestampCreatedAt = createUTCTimestamp(utcTimestampCreatedAt); - for (auto &a : causedBy) { - this->causedBy.push_back(a); - } for (auto &a : prohibits) { this->prohibits.push_back(a); } @@ -69,14 +65,12 @@ Event::Event(std::string title, uint32_t utcTimestampCreatedAt, uint32_t numberNight, bool isVisible, - std::initializer_list causedBy, std::initializer_list prohibits, std::initializer_list allows): Event(title, utcTimestampCreatedAt, numberNight, isVisible, - std::vector(causedBy), std::vector(prohibits), std::vector(allows)) { this->utcTimestampCreatedAt = createUTCTimestamp(utcTimestampCreatedAt); diff --git a/src/prep/prep.hh b/src/prep/prep.hh index d4153a9..093aa79 100644 --- a/src/prep/prep.hh +++ b/src/prep/prep.hh @@ -74,7 +74,6 @@ struct Event { std::tm *utcTimestampCreatedAt; uint32_t numberNight; bool isVisible; - std::vector causedBy; std::vector prohibits; std::vector allows; @@ -86,14 +85,12 @@ struct Event { uint32_t utcTimestampCreatedAt, uint32_t numberNight, bool isVisible, - std::vector causedBy, std::vector prohibits, std::vector allows); Event(std::string title, uint32_t utcTimestampCreatedAt, uint32_t numberNight, bool isVisible, - std::initializer_list causedBy, std::initializer_list prohibits, std::initializer_list allows); };