MCPcopy Create free account
hub / github.com/SimHacker/micropolis / currentYear

Method currentYear

MicropolisCore/src/MicropolisEngine/src/utilities.cpp:289–292  ·  view source on GitHub ↗

* Get the current year. * @return The current game year. */

Source from the content-addressed store, hash-verified

287 * @return The current game year.
288 */
289int Micropolis::currentYear()
290{
291 return (cityTime / 48) + startingYear;
292}
293
294
295/**

Callers 1

handle_updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected