--- deliantra/server/include/global.h 2007/04/19 16:23:47 1.55 +++ deliantra/server/include/global.h 2007/09/30 16:24:30 1.66 @@ -1,25 +1,24 @@ /* - * CrossFire, A Multiplayer game for X-windows + * This file is part of Crossfire TRT, the Roguelike Realtime MORPG. * - * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team - * Copyright (C) 2002 Mark Wedel & Crossfire Development Team - * Copyright (C) 1992 Frank Tore Johansen + * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team + * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team + * Copyright (©) 1992,2007 Frank Tore Johansen * - * This program is free software; you can redistribute it and/or modify + * Crossfire TRT 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 + * the Free Software Foundation, either version 3 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 + * 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 author can be reached via e-mail to crossfire@schmorp.de + * along with this program. If not, see . + * + * The authors can be reached via e-mail to */ #ifndef GLOBAL_H @@ -45,20 +44,33 @@ #define FALSE 0 #endif +extern short freearr_x[SIZEOFFREE], freearr_y[SIZEOFFREE]; +extern int maxfree[SIZEOFFREE], freedir[SIZEOFFREE]; +extern int rightof_x[9], rightof_y[9]; +extern int leftof_x[9], leftof_y[9]; + // used only for tagging structure members so scripting languages // can easily parse the include files. #define INTERFACE_CLASS(name) #define ACC(meta,member) member #define MTH +#if __GNUC__ >= 3 +# define attribute(attrlist) __attribute__(attrlist) +#else +# define attribute(attrlist) +#endif + #include "keyword.h" #include "traits.h" #include "dynbuf.h" #include "util.h" #include "shstr.h" +#include "cfperl.h" /* This blob, in this order, is needed to actually define maps */ #include "face.h" +#include "sounds.h" #include "spells.h" @@ -118,7 +130,6 @@ * These are the beginnings of linked lists: */ EXTERN artifactlist *first_artifactlist; -EXTERN archetype *first_archetype; EXTERN objectlink *first_friendly_object; /* Objects monsters will go after */ EXTERN godlink *first_god; EXTERN racelink *first_race; @@ -130,7 +141,7 @@ EXTERN bool init_done; /* Ignores signals until init_done is true */ EXTERN bool in_cleanup; /* True when cleanup() is reached */ -extern long pticks; /* used by various function to determine */ +extern tick_t pticks; /* used by various function to determine */ /* how often to save the character */ /* * Misc global variables: @@ -160,11 +171,6 @@ #define NUM_ANIMATIONS(ob) (animations[ob->animation_id].num_animations) #define NUM_FACINGS(ob) (animations[ob->animation_id].facings) -extern short freearr_x[SIZEOFFREE], freearr_y[SIZEOFFREE]; -extern int maxfree[SIZEOFFREE], freedir[SIZEOFFREE]; -extern int rightof_x[9], rightof_y[9]; -extern int leftof_x[9], leftof_y[9]; - extern void emergency_save (); extern void cleanup (const char *cause, bool make_core = false); @@ -208,8 +214,8 @@ uint8 ACC (RW, spell_encumbrance); /* encumbrance effects spells */ uint8 ACC (RW, spell_failure_effects); /* nasty backlash to spell failures */ uint16 ACC (RW, set_friendly_fire); /* Percent of damage done by peaceful player vs player damage */ - uint8 ACC (RW, casting_time); /* it takes awhile to cast a spell */ - uint8 ACC (RW, real_wiz); /* use mud-like wizards */ + uint8 dummy_001; + uint8 dummy_002; uint8 dummy_000; uint8 ACC (RW, spellpoint_level_depend); /* spell costs go up with level */ char ACC (RW, motd)[MAX_BUF]; /* name of the motd file */ @@ -234,14 +240,11 @@ int ACC (RW, armor_speed_improvement); /* Speed improvement */ uint8 ACC (RW, armor_weight_linear); /* If 1, weight reduction is linear, else exponantiel */ uint8 ACC (RW, armor_speed_linear); /* If 1, speed improvement is linear, else exponantiel */ - uint8 ACC (RW, no_player_stealing); /* If 1, can not steal from other players */ - uint8 ACC (RW, create_home_portals); /* If 1, can create portals in personal maps */ }; extern Settings settings; -#include "plugin.h" -#include "cfperl.h" +void reset_signals (); #endif /* GLOBAL_H */