2005-06-04 15:22:31 +02:00
|
|
|
#ifndef KRNL_CALENDAR_H
|
|
|
|
#define KRNL_CALENDAR_H
|
|
|
|
|
2005-06-11 10:09:55 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2007-06-20 02:34:02 +02:00
|
|
|
enum {
|
|
|
|
SEASON_WINTER,
|
|
|
|
SEASON_SPRING,
|
|
|
|
SEASON_SUMMER,
|
|
|
|
SEASON_AUTUMN
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2005-06-04 15:22:31 +02:00
|
|
|
extern char *agename;
|
|
|
|
extern int first_turn;
|
|
|
|
extern int first_month;
|
|
|
|
|
|
|
|
extern int seasons;
|
|
|
|
extern char **seasonnames;
|
|
|
|
|
|
|
|
extern int months_per_year;
|
|
|
|
extern char **monthnames;
|
|
|
|
extern int *month_season;
|
|
|
|
extern int *storms; /* in movement.c */
|
|
|
|
|
|
|
|
extern char **weeknames;
|
|
|
|
extern char **weeknames2;
|
|
|
|
extern int weeks_per_month;
|
|
|
|
|
2005-06-05 15:34:08 +02:00
|
|
|
typedef struct gamedate {
|
|
|
|
int year;
|
|
|
|
int season;
|
|
|
|
int month;
|
|
|
|
int week;
|
|
|
|
} gamedate;
|
|
|
|
|
2006-02-04 14:08:44 +01:00
|
|
|
extern const gamedate * get_gamedate(int turn, gamedate * gd);
|
2005-06-11 10:09:55 +02:00
|
|
|
extern void calendar_cleanup(void);
|
2005-06-05 15:34:08 +02:00
|
|
|
|
2005-06-11 10:09:55 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2005-06-04 15:22:31 +02:00
|
|
|
#endif
|