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.61 by root, Thu Dec 21 01:33:50 2006 UTC vs.
Revision 1.62 by root, Fri Dec 22 16:34:00 2006 UTC

145 object_ptr ACC (RW, attacked_by); /* This object start to attack us! only player & monster */ 145 object_ptr ACC (RW, attacked_by); /* This object start to attack us! only player & monster */
146 object_ptr ACC (RW, chosen_skill); /* the skill chosen to use */ 146 object_ptr ACC (RW, chosen_skill); /* the skill chosen to use */
147 object_ptr ACC (RW, spellitem); /* Spell ability monster is choosing to use */ 147 object_ptr ACC (RW, spellitem); /* Spell ability monster is choosing to use */
148 object_ptr ACC (RW, spell); /* Spell that was being cast */ 148 object_ptr ACC (RW, spell); /* Spell that was being cast */
149 object_ptr ACC (RW, current_weapon); /* Pointer to the weapon currently used */ 149 object_ptr ACC (RW, current_weapon); /* Pointer to the weapon currently used */
150 arch_ptr ACC (RW, arch); /* Pointer to archetype */
151 arch_ptr ACC (RW, other_arch);/* Pointer used for various things - mostly used for what */
150}; 152};
151 153
152// these are being copied and also cleared 154// these are being copied and also cleared
153struct object_pod 155struct object_pod
154{ 156{
221 char *ACC (RW, spellarg); 223 char *ACC (RW, spellarg);
222 224
223 /* Following are values used by any object */ 225 /* Following are values used by any object */
224 /* this objects turns into or what this object creates */ 226 /* this objects turns into or what this object creates */
225 treasurelist *ACC (RW, randomitems); /* Items to be generated */ 227 treasurelist *ACC (RW, randomitems); /* Items to be generated */
226 arch_ptr ACC (RW, arch); /* Pointer to archetype */
227 arch_ptr ACC (RW, other_arch);/* Pointer used for various things - mostly used for what */
228 key_value *key_values; /* Fields not explictly known by the loader. */ 228 key_value *key_values; /* Fields not explictly known by the loader. */
229 std::bitset<NUM_FLAGS> flags; /* various flags */ 229 std::bitset<NUM_FLAGS> flags; /* various flags */
230 uint16 ACC (RW, animation_id);/* An index into the animation array */ 230 uint16 ACC (RW, animation_id);/* An index into the animation array */
231 uint8 ACC (RW, anim_speed); /* ticks between animation-frames */ 231 uint8 ACC (RW, anim_speed); /* ticks between animation-frames */
232 uint8 ACC (RW, last_anim); /* last sequence used to draw face */ 232 uint8 ACC (RW, last_anim); /* last sequence used to draw face */
268 return op1->value == op2->value 268 return op1->value == op2->value
269 && op1->name == op2->name 269 && op1->name == op2->name
270 && can_merge_slow (op1, op2); 270 && can_merge_slow (op1, op2);
271 } 271 }
272 272
273 void clear ();
274
275 bool destroyed () { return QUERY_FLAG (this, FLAG_FREED); } 273 bool destroyed () { return QUERY_FLAG (this, FLAG_FREED); }
276 274
277 void set_owner (object *owner); 275 void set_owner (object *owner);
278 276
279 void instantiate () 277 void instantiate ()
281 if (!uuid.seq) // HACK 279 if (!uuid.seq) // HACK
282 uuid = gen_uuid (); 280 uuid = gen_uuid ();
283 281
284 attachable<object>::instantiate (); 282 attachable<object>::instantiate ();
285 } 283 }
284
285 // recalculate all stats
286 void update_stats ();
287 void roll_stats ();
288 void swap_stats (int a, int b);
289 void add_statbonus ();
290 void remove_statbonus ();
291 void drain_stat ();
292 void drain_specific_stat (int deplete_stats);
293 void change_luck (int value);
286 294
287 // info must hold 256 * 3 bytes currently 295 // info must hold 256 * 3 bytes currently
288 const char *debug_desc (char *info) const; 296 const char *debug_desc (char *info) const;
289 const char *debug_desc () const; 297 const char *debug_desc () const;
290 298

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines