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.136 by root, Thu Jul 5 08:10:30 2007 UTC vs.
Revision 1.140 by root, Wed Aug 1 01:07:42 2007 UTC

184 sint32 ACC (RW, carrying); /* How much weight this object contains */ 184 sint32 ACC (RW, carrying); /* How much weight this object contains */
185 sint64 ACC (RW, perm_exp); /* Permanent exp */ 185 sint64 ACC (RW, perm_exp); /* Permanent exp */
186 uint32 ACC (RW, weapontype); /* type of weapon */ 186 uint32 ACC (RW, weapontype); /* type of weapon */
187 uint32 ACC (RW, tooltype); /* type of tool or build facility */ 187 uint32 ACC (RW, tooltype); /* type of tool or build facility */
188 body_slot slot [NUM_BODY_LOCATIONS]; 188 body_slot slot [NUM_BODY_LOCATIONS];
189 faceidx ACC (RW, face); /* Face with colors */ 189 faceidx ACC (RW, face); /* the graphical face */
190 faceidx ACC (RW, sound); /* the sound face */
191 faceidx ACC (RW, sound_die); /* played on destroy */
190 living ACC (RO, stats); /* Str, Con, Dex, etc */ 192 living ACC (RO, stats); /* Str, Con, Dex, etc */
191 /* See the pod/objects.pod for more info about body locations */ 193 /* See the pod/objects.pod for more info about body locations */
192 194
193 /* Following mostly refers to fields only used for monsters */ 195 /* Following mostly refers to fields only used for monsters */
194 uint32 ACC (RW, hide); /* The object is hidden, not invisible */ 196 uint32 ACC (RW, hide); /* The object is hidden, not invisible */
284 MTH void destroy (bool destroy_inventory = false); 286 MTH void destroy (bool destroy_inventory = false);
285 287
286 // recursively destroy all objects in inventory, optionally dropping them to the ground instead 288 // recursively destroy all objects in inventory, optionally dropping them to the ground instead
287 MTH void destroy_inv (bool drop_to_ground = false); 289 MTH void destroy_inv (bool drop_to_ground = false);
288 MTH object *insert (object *item); // insert into inventory 290 MTH object *insert (object *item); // insert into inventory
291 MTH void play_sound (faceidx sound) const;
292
289 void do_remove (); 293 void do_remove ();
290 MTH void remove () 294 MTH void remove ()
291 { 295 {
292 if (!flag [FLAG_REMOVED]) 296 if (!flag [FLAG_REMOVED])
293 do_remove (); 297 do_remove ();
423 MTH void create_treasure (treasurelist *tl, int flags = 0); 427 MTH void create_treasure (treasurelist *tl, int flags = 0);
424 428
425 // insert object at same map position as 'where' 429 // insert object at same map position as 'where'
426 // handles both inventory and map "positions" 430 // handles both inventory and map "positions"
427 MTH object *insert_at (object *where, object *originator = 0, int flags = 0); 431 MTH object *insert_at (object *where, object *originator = 0, int flags = 0);
432 MTH void drop_unpaid_items ();
428 433
429 MTH void activate (); 434 MTH void activate ();
430 MTH void deactivate (); 435 MTH void deactivate ();
431 MTH void activate_recursive (); 436 MTH void activate_recursive ();
432 MTH void deactivate_recursive (); 437 MTH void deactivate_recursive ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines