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.256 by root, Wed Oct 6 01:23:11 2010 UTC vs.
Revision 1.257 by root, Mon Oct 11 18:40:43 2010 UTC

33typedef int tag_t; 33typedef int tag_t;
34 34
35// also see common/item.C 35// also see common/item.C
36enum 36enum
37{ 37{
38 body_skill, 38# define def(name, use, nonuse) body_ ## name,
39 body_combat, 39# include "slotinc.h"
40 body_range, 40# undef def
41 body_shield,
42 body_arm,
43 body_torso,
44 body_head,
45 body_neck,
46 body_finger,
47 body_shoulder,
48 body_foot,
49 body_hand,
50 body_wrist,
51 body_waist,
52 NUM_BODY_LOCATIONS 41 NUM_BODY_LOCATIONS
53}; 42};
54 43
55/* See common/item.c */ 44/* See common/item.c */
56 45
57typedef struct Body_Locations 46struct Body_Locations
58{ 47{
48 const char *name; /* Short name/identifier */
59 keyword save_name; /* Name used to load/save it to disk */ 49 keyword kw; /* Name used to load/save it to disk */
60 const char *use_name; /* Name used when describing an item we can use */ 50 const char *use_name; /* Name used when describing an item we can use */
61 const char *nonuse_name; /* Name to describe objects we can't use */ 51 const char *nonuse_name; /* Name to describe objects we can't use */
62} Body_Locations; 52};
63 53
64extern Body_Locations body_locations[NUM_BODY_LOCATIONS]; 54extern Body_Locations body_locations[NUM_BODY_LOCATIONS];
65 55
66// for each set of directions (1 == up, 2 == right, 4 == down, 8 == left) 56// for each set of directions (1 == up, 2 == right, 4 == down, 8 == left)
67// contains the wall suffix (0, 1_3, 1_4 and so on). 57// contains the wall suffix (0, 1_3, 1_4 and so on).

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines