MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getMonthDay

Method getMonthDay

game/state/gametime.cpp:179–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177unsigned int GameTime::getDay() const { return (this->ticks + TICKS_PER_DAY - 1) / TICKS_PER_DAY; }
178
179unsigned int GameTime::getMonthDay() const
180{
181 return getPtime(this->ticks).date().year_month_day().day;
182}
183
184unsigned int GameTime::getHours() const { return getPtime(this->ticks).time_of_day().hours(); }
185

Callers 2

updateEndOfDayMethod · 0.80
eventOccurredMethod · 0.80

Calls 1

getPtimeFunction · 0.85

Tested by

no test coverage detected