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

Method getMonthString

src/Savegame/GameTime.cpp:239–243  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

237 * @return Month string ID.
238 */
239std::string GameTime::getMonthString() const
240{
241 std::string months[] = {"STR_JAN", "STR_FEB", "STR_MAR", "STR_APR", "STR_MAY", "STR_JUN", "STR_JUL", "STR_AUG", "STR_SEP", "STR_OCT", "STR_NOV", "STR_DEC"};
242 return months[_month - 1];
243}
244
245/**
246 * Returns the current ingame year.

Callers 3

getSaveInfoMethod · 0.80
SoldierMemorialStateMethod · 0.80
timeDisplayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected