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.115 by root, Thu May 3 10:39:46 2007 UTC vs.
Revision 1.116 by root, Mon May 7 03:05:58 2007 UTC

30#include "cfperl.h" 30#include "cfperl.h"
31#include "shstr.h" 31#include "shstr.h"
32 32
33typedef int tag_t; 33typedef int tag_t;
34 34
35#define NUM_BODY_LOCATIONS 12 35#define NUM_BODY_LOCATIONS 14
36#define BODY_ARMS 1 36#define BODY_ARMS 1
37 37
38/* See common/item.c */ 38/* See common/item.c */
39 39
40typedef struct Body_Locations 40typedef struct Body_Locations
89 89
90/* However, if you're keeping a pointer of some sort, you probably 90/* However, if you're keeping a pointer of some sort, you probably
91 * don't just want it copied, so you'll need to add to common/object.C, 91 * don't just want it copied, so you'll need to add to common/object.C,
92 * e.g. ->copy_to () 92 * e.g. ->copy_to ()
93 */ 93 */
94
95struct body_slot
96{
97 sint8 info:4; /* body info as loaded from the file */
98 sint8 used:4; /* Calculated value based on items equipped */
99};
94 100
95INTERFACE_CLASS (object) 101INTERFACE_CLASS (object)
96// these are being copied 102// these are being copied
97struct object_copy : attachable 103struct object_copy : attachable
98{ 104{
158 sint32 ACC (RW, weight_limit);/* Weight-limit of object */ 164 sint32 ACC (RW, weight_limit);/* Weight-limit of object */
159 sint32 ACC (RW, carrying); /* How much weight this object contains */ 165 sint32 ACC (RW, carrying); /* How much weight this object contains */
160 sint64 ACC (RW, perm_exp); /* Permanent exp */ 166 sint64 ACC (RW, perm_exp); /* Permanent exp */
161 uint32 ACC (RW, weapontype); /* type of weapon */ 167 uint32 ACC (RW, weapontype); /* type of weapon */
162 uint32 ACC (RW, tooltype); /* type of tool or build facility */ 168 uint32 ACC (RW, tooltype); /* type of tool or build facility */
163 sint8 ACC (RW, body_info[NUM_BODY_LOCATIONS]); /* body info as loaded from the file */ 169 body_slot slot [NUM_BODY_LOCATIONS];
164 sint8 ACC (RW, body_used[NUM_BODY_LOCATIONS]); /* Calculated value based on items equipped */
165 faceidx ACC (RW, face); /* Face with colors */ 170 faceidx ACC (RW, face); /* Face with colors */
166 living ACC (RO, stats); /* Str, Con, Dex, etc */ 171 living ACC (RO, stats); /* Str, Con, Dex, etc */
167 /* See the pod/objects.pod for more info about body locations */ 172 /* See the pod/objects.pod for more info about body locations */
168 173
169 /* Following mostly refers to fields only used for monsters */ 174 /* Following mostly refers to fields only used for monsters */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines