From 3bbc5ceb635a344d413e65249b4a33b0ed30feab Mon Sep 17 00:00:00 2001 From: San Jacobs Date: Mon, 22 Aug 2022 12:17:25 +0200 Subject: Completed ruleset! Just testing left before alpha! --- src/time.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/time.h') diff --git a/src/time.h b/src/time.h index efade95..b9a17d0 100755 --- a/src/time.h +++ b/src/time.h @@ -5,6 +5,7 @@ #include #include #include +#include enum weekday{ monday, @@ -17,9 +18,9 @@ enum weekday{ }; struct delta{ - unsigned int minutes; - unsigned int hours; - unsigned int days; + signed int minutes; + signed int hours; + signed int days; }; std::ostream& operator<<(std::ostream& stream, const delta& other); @@ -31,6 +32,7 @@ struct moment{ signed int year; weekday getweekday(); + bool isEaster(); bool operator<(const moment& other) const; bool operator>(const moment& other) const; @@ -95,6 +97,8 @@ void wind(moment& input_moment, const delta& time_delta); int days_in(const int month, const int year); +moment gaussEaster(int year); + std::string timeprint(const moment input_moment); std::string timeprint(const moment input_moment, bool clockonly); std::string timeprint(const timeblock input_timeblock); -- cgit v1.2.1