MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getWeekdayString

Method getWeekdayString

src/Savegame/GameTime.cpp:180–184  ·  view source on GitHub ↗

* Returns a localizable-string representation of * the current ingame weekday. * @return Weekday string ID. */

Source from the content-addressed store, hash-verified

178 * @return Weekday string ID.
179 */
180std::string GameTime::getWeekdayString() const
181{
182 std::string weekdays[] = {"STR_SUNDAY", "STR_MONDAY", "STR_TUESDAY", "STR_WEDNESDAY", "STR_THURSDAY", "STR_FRIDAY", "STR_SATURDAY"};
183 return weekdays[_weekday - 1];
184}
185
186/**
187 * Returns the current ingame day.

Callers 1

timeDisplayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected