ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/global.h
(Generate patch)

Comparing deliantra/server/include/global.h (file contents):
Revision 1.30 by root, Mon Dec 18 03:00:02 2006 UTC vs.
Revision 1.32 by root, Mon Dec 25 11:25:49 2006 UTC

51#define FALSE 0 51#define FALSE 0
52#endif 52#endif
53 53
54// used only for tagging structure members so scripting languages 54// used only for tagging structure members so scripting languages
55// can easily parse the include files. 55// can easily parse the include files.
56#define ACC_CLASS(name) 56#define INTERFACE_CLASS(name)
57#define ACC(meta,member) member 57#define ACC(meta,member) member
58#define MTH
58 59
59#include "keyword.h" 60#include "keyword.h"
60#include "traits.h" 61#include "traits.h"
61#include "dynbuf.h" 62#include "dynbuf.h"
62#include "util.h" 63#include "util.h"
176EXTERN int num_animations,animations_allocated, bmaps_checksum; 177EXTERN int num_animations,animations_allocated, bmaps_checksum;
177 178
178/* Rotate right from bsd sum. This is used in various places for checksumming */ 179/* Rotate right from bsd sum. This is used in various places for checksumming */
179#define ROTATE_RIGHT(c) if ((c) & 01) (c) = ((c) >>1) + 0x80000000; else (c) >>= 1; 180#define ROTATE_RIGHT(c) if ((c) & 01) (c) = ((c) >>1) + 0x80000000; else (c) >>= 1;
180 181
181
182#define SET_ANIMATION(ob,newanim) ob->face=&new_faces[animations[ob->animation_id].faces[newanim]] 182#define SET_ANIMATION(ob,newanim) ob->face = new_faces + animations [ob->animation_id].faces [newanim]
183#define GET_ANIMATION(ob,anim) (animations[ob->animation_id].faces[anim]) 183#define GET_ANIMATION(ob,anim) animations [ob->animation_id].faces [anim]
184#define GET_ANIM_ID(ob) (ob->animation_id) 184#define GET_ANIM_ID(ob) (ob->animation_id)
185/* NUM_ANIMATIONS returns the number of animations allocated. The last 185/* NUM_ANIMATIONS returns the number of animations allocated. The last
186 * usuable animation will be NUM_ANIMATIONS-1 (for example, if an object 186 * usuable animation will be NUM_ANIMATIONS-1 (for example, if an object
187 * has 8 animations, NUM_ANIMATIONS will return 8, but the values will 187 * has 8 animations, NUM_ANIMATIONS will return 8, but the values will
188 * range from 0 through 7. 188 * range from 0 through 7.
204#include "libproto.h" 204#include "libproto.h"
205#include "sockproto.h" 205#include "sockproto.h"
206 206
207#define decrease_ob(xyz) decrease_ob_nr(xyz,1) 207#define decrease_ob(xyz) decrease_ob_nr(xyz,1)
208 208
209ACC_CLASS (Settings) 209INTERFACE_CLASS (Settings)
210struct Settings { 210struct Settings {
211 char *ACC (RO, logfilename); /* logfile to use */ 211 char *ACC (RO, logfilename); /* logfile to use */
212 int ACC (RW, csport); /* port for new client/server */ 212 int ACC (RW, csport); /* port for new client/server */
213 int ACC (RW, debug); /* Default debugging level */ 213 int ACC (RW, debug); /* Default debugging level */
214 uint8 dumpvalues; /* Set to dump various values/tables */ 214 uint8 dumpvalues; /* Set to dump various values/tables */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines