--- deliantra/server/include/tod.h 2006/02/03 07:12:51 1.1 +++ deliantra/server/include/tod.h 2007/01/15 21:06:19 1.7 @@ -1,4 +1,27 @@ -/* Copyright 2000 Tim Rightnour */ +/* + * CrossFire, A Multiplayer game for X-windows + * + * Copyright (C) 2006, 2007 Marc Lehmann & Crossfire+ Development Team + * Copyright (C) 2003-2006 Mark Wedel & Crossfire Development Team + * Copyright (C) 2000 Tim Rightnour + * Copyright (C) 1992 Frank Tore Johansen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * The authors can be reached via e-mail at crossfire@schmorp.de + */ #ifndef _TOD_H_ #define _TOD_H_ @@ -22,14 +45,14 @@ #define LUNAR_DAYS DAYS_PER_MONTH typedef struct _timeofday { - int year; - int month; - int day; - int dayofweek; - int hour; - int minute; - int weekofmonth; - int season; + int year; + int month; + int day; + int dayofweek; + int hour; + int minute; + int weekofmonth; + int season; } timeofday_t; /* from common/time.c */ @@ -82,32 +105,32 @@ #define SKY_BLIZZARD 16 typedef struct _weather_avoids { - const char *name; - int snow; - archetype *what; /*inited from name, faste to compare arch pointers than strings*/ + const char *name; + int snow; + archetype *what; /*inited from name, faste to compare arch pointers than strings*/ } weather_avoids_t; typedef struct _weather_replace { - const char *tile; - const char *special_snow; - const char *doublestack_arch; - int arch_or_name; + const char *tile; + const char *special_snow; + const char *doublestack_arch; + int arch_or_name; } weather_replace_t; typedef struct _weather_grow { - const char *herb; /* arch name of item to grow */ - const char *tile; /* arch tile to grow on, NULL if anything */ - int random; /* random factor. min 1, higher = lower chance of - * appearance */ - float rfmin; - float rfmax; /* rainfall min/max (inches/day) */ - int humin; - int humax; /* humidity min/max */ - int tempmin; - int tempmax; /* temp min/max */ - int elevmin; - int elevmax; /* elevation min/max */ - int season; /* 0=any or 1-5 */ + const char *herb; /* arch name of item to grow */ + const char *tile; /* arch tile to grow on, NULL if anything */ + int random; /* random factor. min 1, higher = lower chance of + * appearance */ + float rfmin; + float rfmax; /* rainfall min/max (inches/day) */ + int humin; + int humax; /* humidity min/max */ + int tempmin; + int tempmax; /* temp min/max */ + int elevmin; + int elevmax; /* elevation min/max */ + int season; /* 0=any or 1-5 */ } weather_grow_t; #endif /* _TOD_H_ */