Freeciv21
Develop your civilization from humble roots to a global empire
calendar.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3  __ __ part of Freeciv21. Freeciv21 is free software: you can
4 / \\..// \ redistribute it and/or modify it under the terms of the GNU
5  ( oo ) General Public License as published by the Free Software
6  \__/ Foundation, either version 3 of the License, or (at your
7  option) any later version. You should have received
8  a copy of the GNU General Public License along with Freeciv21. If not,
9  see https://www.gnu.org/licenses/.
10 **************************************************************************/
11 #pragma once
12 
13 struct packet_game_info;
14 void game_next_year(struct packet_game_info *info);
15 void game_advance_year();
16 
17 const char *textcalfrag(int frag);
18 const char *textyear(int year);
19 const char *calendar_text();
const char * calendar_text()
Produce a statically allocated textual representation of the current calendar time.
Definition: calendar.cpp:137
void game_advance_year()
Advance the game year.
Definition: calendar.cpp:87
void game_next_year(struct packet_game_info *info)
Advance the calendar in the passed game_info structure (may only be a copy of the real one).
Definition: calendar.cpp:24
const char * textcalfrag(int frag)
Produce a statically allocated textual representation of the given calendar fragment.
Definition: calendar.cpp:97
const char * textyear(int year)
Produce a statically allocated textual representation of the given year.
Definition: calendar.cpp:116