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

Comparing deliantra/server/include/object.h (file contents):
Revision 1.1 by root, Fri Feb 3 07:12:50 2006 UTC vs.
Revision 1.3 by elmex, Wed Feb 22 18:53:48 2006 UTC

1/* 1/*
2 * static char *rcsid_object_h = 2 * static char *rcsid_object_h =
3 * "$Id: object.h,v 1.1 2006/02/03 07:12:50 root Exp $"; 3 * "$Id: object.h,v 1.3 2006/02/22 18:53:48 elmex Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
34#define BODY_ARMS 1 34#define BODY_ARMS 1
35 35
36/* See common/item.c */ 36/* See common/item.c */
37 37
38typedef struct Body_Locations { 38typedef struct Body_Locations {
39 char *save_name; /* Name used to load/save it to disk */ 39 const char *save_name; /* Name used to load/save it to disk */
40 char *use_name; /* Name used when describing an item we can use */ 40 const char *use_name; /* Name used when describing an item we can use */
41 char *nonuse_name; /* Name to describe objects we can't use */ 41 const char *nonuse_name; /* Name to describe objects we can't use */
42} Body_Locations; 42} Body_Locations;
43 43
44extern Body_Locations body_locations[NUM_BODY_LOCATIONS]; 44extern Body_Locations body_locations[NUM_BODY_LOCATIONS];
45 45
46typedef struct _event 46typedef struct _event
237 sint32 elevation; /* elevation of this terrain - not currently used */ 237 sint32 elevation; /* elevation of this terrain - not currently used */
238 uint8 smoothlevel; /* how to smooth this square around*/ 238 uint8 smoothlevel; /* how to smooth this square around*/
239 239
240 MoveType move_type; /* Type of movement this object uses */ 240 MoveType move_type; /* Type of movement this object uses */
241 MoveType move_block; /* What movement types this blocks */ 241 MoveType move_block; /* What movement types this blocks */
242 MoveType move_allow; /* What movement types explicitly allowd */
242 MoveType move_on; /* Move types affected moving on to this space */ 243 MoveType move_on; /* Move types affected moving on to this space */
243 MoveType move_off; /* Move types affected moving off this space */ 244 MoveType move_off; /* Move types affected moving off this space */
244 MoveType move_slow; /* Movement types this slows down */ 245 MoveType move_slow; /* Movement types this slows down */
245 float move_slow_penalty; /* How much this slows down the object */ 246 float move_slow_penalty; /* How much this slows down the object */
246 247
247 event *events; 248 event *events;
248 249
249 const char *custom_name; /* Custom name assigned by player */ 250 const char *custom_name; /* Custom name assigned by player */
250 key_value *key_values; /* Fields not explictly known by the loader. */ 251 key_value *key_values; /* Fields not explictly known by the loader. */
251
252} object; 252} object;
253 253
254typedef struct oblnk { /* Used to link together several objects */ 254typedef struct oblnk { /* Used to link together several objects */
255 object *ob; 255 object *ob;
256 struct oblnk *next; 256 struct oblnk *next;
343#define ARCH_SINGULARITY_LEN 11 343#define ARCH_SINGULARITY_LEN 11
344#define ARCH_DETECT_MAGIC "detect_magic" 344#define ARCH_DETECT_MAGIC "detect_magic"
345#define ARCH_DEPLETION "depletion" 345#define ARCH_DEPLETION "depletion"
346#define ARCH_SYMPTOM "symptom" 346#define ARCH_SYMPTOM "symptom"
347 347
348extern void (*object_free_callback)(object *ob); // called for every object_free
349
348#endif 350#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines