1 | /* |
|
|
2 | * static char *rcsid_tod_h = |
|
|
3 | * "$Id: tod.h,v 1.1.1.2 2006/03/15 14:04:54 elmex Exp $"; |
|
|
4 | */ |
|
|
5 | |
|
|
6 | /* |
1 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
2 | CrossFire, A Multiplayer game for X-windows |
8 | |
3 | |
9 | Copyright (C) 2003-2006 Mark Wedel & Crossfire Development Team |
4 | Copyright (C) 2003-2006 Mark Wedel & Crossfire Development Team |
10 | Copyright (C) 2000 Tim Rightnour |
5 | Copyright (C) 2000 Tim Rightnour |
… | |
… | |
47 | #define HOURS_PER_YEAR (HOURS_PER_MONTH*MONTHS_PER_YEAR) |
42 | #define HOURS_PER_YEAR (HOURS_PER_MONTH*MONTHS_PER_YEAR) |
48 | |
43 | |
49 | #define LUNAR_DAYS DAYS_PER_MONTH |
44 | #define LUNAR_DAYS DAYS_PER_MONTH |
50 | |
45 | |
51 | typedef struct _timeofday { |
46 | typedef struct _timeofday { |
52 | int year; |
47 | int year; |
53 | int month; |
48 | int month; |
54 | int day; |
49 | int day; |
55 | int dayofweek; |
50 | int dayofweek; |
56 | int hour; |
51 | int hour; |
57 | int minute; |
52 | int minute; |
58 | int weekofmonth; |
53 | int weekofmonth; |
59 | int season; |
54 | int season; |
60 | } timeofday_t; |
55 | } timeofday_t; |
61 | |
56 | |
62 | /* from common/time.c */ |
57 | /* from common/time.c */ |
63 | extern void get_tod(timeofday_t *tod); |
58 | extern void get_tod(timeofday_t *tod); |
64 | |
59 | |
… | |
… | |
107 | #define SKY_SNOW 14 |
102 | #define SKY_SNOW 14 |
108 | #define SKY_HEAVY_SNOW 15 |
103 | #define SKY_HEAVY_SNOW 15 |
109 | #define SKY_BLIZZARD 16 |
104 | #define SKY_BLIZZARD 16 |
110 | |
105 | |
111 | typedef struct _weather_avoids { |
106 | typedef struct _weather_avoids { |
112 | const char *name; |
107 | const char *name; |
113 | int snow; |
108 | int snow; |
114 | archetype *what; /*inited from name, faste to compare arch pointers than strings*/ |
109 | archetype *what; /*inited from name, faste to compare arch pointers than strings*/ |
115 | } weather_avoids_t; |
110 | } weather_avoids_t; |
116 | |
111 | |
117 | typedef struct _weather_replace { |
112 | typedef struct _weather_replace { |
118 | const char *tile; |
113 | const char *tile; |
119 | const char *special_snow; |
114 | const char *special_snow; |
120 | const char *doublestack_arch; |
115 | const char *doublestack_arch; |
121 | int arch_or_name; |
116 | int arch_or_name; |
122 | } weather_replace_t; |
117 | } weather_replace_t; |
123 | |
118 | |
124 | typedef struct _weather_grow { |
119 | typedef struct _weather_grow { |
125 | const char *herb; /* arch name of item to grow */ |
120 | const char *herb; /* arch name of item to grow */ |
126 | const char *tile; /* arch tile to grow on, NULL if anything */ |
121 | const char *tile; /* arch tile to grow on, NULL if anything */ |
127 | int random; /* random factor. min 1, higher = lower chance of |
122 | int random; /* random factor. min 1, higher = lower chance of |
128 | * appearance */ |
123 | * appearance */ |
129 | float rfmin; |
124 | float rfmin; |
130 | float rfmax; /* rainfall min/max (inches/day) */ |
125 | float rfmax; /* rainfall min/max (inches/day) */ |
131 | int humin; |
126 | int humin; |
132 | int humax; /* humidity min/max */ |
127 | int humax; /* humidity min/max */ |
133 | int tempmin; |
128 | int tempmin; |
134 | int tempmax; /* temp min/max */ |
129 | int tempmax; /* temp min/max */ |
135 | int elevmin; |
130 | int elevmin; |
136 | int elevmax; /* elevation min/max */ |
131 | int elevmax; /* elevation min/max */ |
137 | int season; /* 0=any or 1-5 */ |
132 | int season; /* 0=any or 1-5 */ |
138 | } weather_grow_t; |
133 | } weather_grow_t; |
139 | |
134 | |
140 | #endif /* _TOD_H_ */ |
135 | #endif /* _TOD_H_ */ |