server/src/kernel/calendar.h

45 lines
772 B
C
Raw Normal View History

2010-08-08 10:06:34 +02:00
#ifndef KRNL_CALENDAR_H
#define KRNL_CALENDAR_H
#ifdef __cplusplus
extern "C" {
#endif
2011-03-07 08:02:35 +01:00
enum {
SEASON_WINTER,
SEASON_SPRING,
SEASON_SUMMER,
SEASON_AUTUMN
};
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;
typedef struct gamedate {
int year;
int season;
int month;
int week;
} gamedate;
extern const gamedate *get_gamedate(int turn, gamedate * gd);
extern void calendar_cleanup(void);
2010-08-08 10:06:34 +02:00
#ifdef __cplusplus
}
#endif
#endif