--- deliantra/server/include/global.h 2006/12/15 20:08:45 1.28 +++ deliantra/server/include/global.h 2006/12/25 11:25:49 1.32 @@ -53,8 +53,9 @@ // used only for tagging structure members so scripting languages // can easily parse the include files. -#define ACC_CLASS(name) +#define INTERFACE_CLASS(name) #define ACC(meta,member) member +#define MTH #include "keyword.h" #include "traits.h" @@ -64,7 +65,9 @@ /* This blob, in this order, is needed to actually define maps */ #include "face.h" -/* Include the basic defines from spells.h */ + +#include "spells.h" + #include "attack.h" /* needs to be before material.h */ #include "material.h" #include "living.h" @@ -110,9 +113,6 @@ /* Now for recipe/alchemy */ #include "recipe.h" -/* Now for spells */ -#include "spells.h" - #include "funcpoint.h" /***************************************************************************** @@ -179,9 +179,8 @@ /* Rotate right from bsd sum. This is used in various places for checksumming */ #define ROTATE_RIGHT(c) if ((c) & 01) (c) = ((c) >>1) + 0x80000000; else (c) >>= 1; - -#define SET_ANIMATION(ob,newanim) ob->face=&new_faces[animations[ob->animation_id].faces[newanim]] -#define GET_ANIMATION(ob,anim) (animations[ob->animation_id].faces[anim]) +#define SET_ANIMATION(ob,newanim) ob->face = new_faces + animations [ob->animation_id].faces [newanim] +#define GET_ANIMATION(ob,anim) animations [ob->animation_id].faces [anim] #define GET_ANIM_ID(ob) (ob->animation_id) /* NUM_ANIMATIONS returns the number of animations allocated. The last * usuable animation will be NUM_ANIMATIONS-1 (for example, if an object @@ -207,7 +206,7 @@ #define decrease_ob(xyz) decrease_ob_nr(xyz,1) -ACC_CLASS (Settings) +INTERFACE_CLASS (Settings) struct Settings { char *ACC (RO, logfilename); /* logfile to use */ int ACC (RW, csport); /* port for new client/server */ @@ -245,7 +244,6 @@ 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 ACC (RW, recycle_tmp_maps); /* re-use tmp maps. */ uint8 ACC (RW, explore_mode); /* explore mode allowed? */ uint8 ACC (RW, spellpoint_level_depend); /* spell costs go up with level */ char ACC (RW, motd)[MAX_BUF]; /* name of the motd file */