2010-08-08 10:06:34 +02:00
|
|
|
#ifndef KRNL_CALENDAR_H
|
|
|
|
#define KRNL_CALENDAR_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
enum {
|
|
|
|
SEASON_WINTER,
|
|
|
|
SEASON_SPRING,
|
|
|
|
SEASON_SUMMER,
|
|
|
|
SEASON_AUTUMN
|
|
|
|
};
|
2017-05-07 17:46:51 +02:00
|
|
|
#define CALENDAR_SEASONS 4
|
|
|
|
extern const char *seasonnames[CALENDAR_SEASONS];
|
2015-01-30 20:37:14 +01:00
|
|
|
|
|
|
|
extern int months_per_year;
|
|
|
|
extern int *month_season;
|
2017-05-07 17:46:51 +02:00
|
|
|
extern int first_month;
|
2015-01-30 20:37:14 +01:00
|
|
|
|
|
|
|
extern char **weeknames;
|
|
|
|
extern char **weeknames2;
|
|
|
|
extern int weeks_per_month;
|
|
|
|
|
|
|
|
typedef struct gamedate {
|
|
|
|
int year;
|
|
|
|
int season;
|
|
|
|
int month;
|
|
|
|
int week;
|
|
|
|
} gamedate;
|
|
|
|
|
2017-01-22 05:13:44 +01:00
|
|
|
const gamedate *get_gamedate(int turn, gamedate * gd);
|
|
|
|
void calendar_cleanup(void);
|
2017-05-07 17:46:51 +02:00
|
|
|
const char *calendar_month(int index);
|
|
|
|
const char *calendar_era(void);
|
2017-01-22 05:13:44 +01:00
|
|
|
int first_turn(void);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|