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.101 by root, Fri Feb 16 22:21:46 2007 UTC vs.
Revision 1.104 by root, Wed Mar 14 00:04:58 2007 UTC

121 object_ptr ACC (RW, spell); /* Spell that was being cast */ 121 object_ptr ACC (RW, spell); /* Spell that was being cast */
122 object_ptr ACC (RW, current_weapon); /* Pointer to the weapon currently used */ 122 object_ptr ACC (RW, current_weapon); /* Pointer to the weapon currently used */
123 arch_ptr ACC (RW, arch); /* Pointer to archetype */ 123 arch_ptr ACC (RW, arch); /* Pointer to archetype */
124 arch_ptr ACC (RW, other_arch);/* Pointer used for various things - mostly used for what */ 124 arch_ptr ACC (RW, other_arch);/* Pointer used for various things - mostly used for what */
125 125
126 facetile *ACC (RW, face); /* Face with colors */
127 float ACC (RW, speed); /* The overall speed of this object */ 126 float ACC (RW, speed); /* The overall speed of this object */
128 float ACC (RW, speed_left); /* How much speed is left to spend this round */ 127 float ACC (RW, speed_left); /* How much speed is left to spend this round */
129 uint32 ACC (RW, nrof); /* How many of the objects */ 128 uint32 ACC (RW, nrof); /* How many of the objects */
130 129
131 /* This next big block are basically used for monsters and equipment */ 130 /* This next big block are basically used for monsters and equipment */
160 sint64 ACC (RW, perm_exp); /* Permanent exp */ 159 sint64 ACC (RW, perm_exp); /* Permanent exp */
161 uint32 ACC (RW, weapontype); /* type of weapon */ 160 uint32 ACC (RW, weapontype); /* type of weapon */
162 uint32 ACC (RW, tooltype); /* type of tool or build facility */ 161 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 */ 162 sint8 ACC (RW, body_info[NUM_BODY_LOCATIONS]); /* body info as loaded from the file */
164 sint8 ACC (RW, body_used[NUM_BODY_LOCATIONS]); /* Calculated value based on items equipped */ 163 sint8 ACC (RW, body_used[NUM_BODY_LOCATIONS]); /* Calculated value based on items equipped */
164 faceidx ACC (RW, face); /* Face with colors */
165 living ACC (RO, stats); /* Str, Con, Dex, etc */ 165 living ACC (RO, stats); /* Str, Con, Dex, etc */
166 /* See the pod/objects.pod for more info about body locations */ 166 /* See the pod/objects.pod for more info about body locations */
167 167
168 /* Following mostly refers to fields only used for monsters */ 168 /* Following mostly refers to fields only used for monsters */
169 uint32 ACC (RW, hide); /* The object is hidden, not invisible */ 169 uint32 ACC (RW, hide); /* The object is hidden, not invisible */
445 445
446extern objectvec objects; 446extern objectvec objects;
447extern activevec actives; 447extern activevec actives;
448 448
449#define for_all_objects(var) \ 449#define for_all_objects(var) \
450 for (int _i = 0; _i < objects.size (); ++_i) \ 450 for (unsigned _i = 0; _i < objects.size (); ++_i) \
451 declvar (object *, var, objects [_i]) 451 declvar (object *, var, objects [_i])
452 452
453#define for_all_actives(var) \ 453#define for_all_actives(var) \
454 for (int _i = 0; _i < actives.size (); ++_i) \ 454 for (unsigned _i = 0; _i < actives.size (); ++_i) \
455 declvar (object *, var, actives [_i]) 455 declvar (object *, var, actives [_i])
456 456
457typedef struct oblnk 457typedef struct oblnk
458{ /* Used to link together several objects */ 458{ /* Used to link together several objects */
459 object_ptr ob; 459 object_ptr ob;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines