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.135 by root, Sun Jul 1 05:00:18 2007 UTC vs.
Revision 1.138 by root, Thu Jul 26 00:27:08 2007 UTC

284 MTH void destroy (bool destroy_inventory = false); 284 MTH void destroy (bool destroy_inventory = false);
285 285
286 // recursively destroy all objects in inventory, optionally dropping them to the ground instead 286 // recursively destroy all objects in inventory, optionally dropping them to the ground instead
287 MTH void destroy_inv (bool drop_to_ground = false); 287 MTH void destroy_inv (bool drop_to_ground = false);
288 MTH object *insert (object *item); // insert into inventory 288 MTH object *insert (object *item); // insert into inventory
289 MTH void play_sound (faceidx sound) const;
290
289 void do_remove (); 291 void do_remove ();
290 MTH void remove () 292 MTH void remove ()
291 { 293 {
292 if (!flag [FLAG_REMOVED]) 294 if (!flag [FLAG_REMOVED])
293 do_remove (); 295 do_remove ();
311 MTH void open_container (object *new_container); 313 MTH void open_container (object *new_container);
312 MTH void close_container () 314 MTH void close_container ()
313 { 315 {
314 open_container (0); 316 open_container (0);
315 } 317 }
318
319 MTH object *force_find (const shstr name);
320 MTH void force_add (const shstr name, int duration = 0);
316 321
317 // overwrite the attachable should_invoke function with a version that also checks ev_want_type 322 // overwrite the attachable should_invoke function with a version that also checks ev_want_type
318 bool should_invoke (event_type event) 323 bool should_invoke (event_type event)
319 { 324 {
320 return ev_want_event [event] || ev_want_type [type] || cb; 325 return ev_want_event [event] || ev_want_type [type] || cb;
420 MTH void create_treasure (treasurelist *tl, int flags = 0); 425 MTH void create_treasure (treasurelist *tl, int flags = 0);
421 426
422 // insert object at same map position as 'where' 427 // insert object at same map position as 'where'
423 // handles both inventory and map "positions" 428 // handles both inventory and map "positions"
424 MTH object *insert_at (object *where, object *originator = 0, int flags = 0); 429 MTH object *insert_at (object *where, object *originator = 0, int flags = 0);
430 MTH void drop_unpaid_items ();
425 431
426 MTH void activate (); 432 MTH void activate ();
427 MTH void deactivate (); 433 MTH void deactivate ();
428 MTH void activate_recursive (); 434 MTH void activate_recursive ();
429 MTH void deactivate_recursive (); 435 MTH void deactivate_recursive ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines