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.107 by root, Mon Apr 16 13:02:29 2007 UTC vs.
Revision 1.111 by root, Tue Apr 24 00:42:02 2007 UTC

29 29
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#define NUM_BODY_LOCATIONS 12 35#define NUM_BODY_LOCATIONS 12
35#define BODY_ARMS 1 36#define BODY_ARMS 1
36 37
37/* See common/item.c */ 38/* See common/item.c */
38 39
361 MTH object *head_ () 362 MTH object *head_ ()
362 { 363 {
363 return head ? head : this; 364 return head ? head : this;
364 } 365 }
365 366
367 MTH std::string long_desc (object *who = 0);
368 MTH std::string describe_monster (object *who = 0);
369 MTH std::string describe_item (object *who = 0);
370 MTH std::string describe (object *who = 0);
371
372 // If this object has no extra parts but should have them,
373 // add them, effectively expanding heads into multipart
374 // objects. This method only works on objects not inserted
375 // anywhere.
376 MTH void expand_tail ();
377
378 MTH void create_treasure (treasurelist *tl, int flags = 0);
379
366 // insert object at same map position as 'where' 380 // insert object at same map position as 'where'
367 // handles both inventory and map "positions" 381 // handles both inventory and map "positions"
368 MTH object *insert_at (object *where, object *originator = 0, int flags = 0); 382 MTH object *insert_at (object *where, object *originator = 0, int flags = 0);
369 383
370 MTH void activate (); 384 MTH void activate ();
482{ 496{
483 archetype (); 497 archetype ();
484 ~archetype (); 498 ~archetype ();
485 void gather_callbacks (AV *&callbacks, event_type event) const; 499 void gather_callbacks (AV *&callbacks, event_type event) const;
486 500
487 static bool load (object_thawer &f); 501 static archetype *read (object_thawer &f);
488 static archetype *get (const char *name); // find or create 502 static archetype *get (const char *name); // find or create
489 static archetype *find (const char *name); 503 static archetype *find (const char *name);
490 504
491 void hash_add (); // add to hashtable 505 void hash_add (); // add to hashtable
492 void hash_del (); // remove from hashtable 506 void hash_del (); // remove from hashtable
493 507
544#define INS_ON_TOP 0x0008 558#define INS_ON_TOP 0x0008
545#define INS_BELOW_ORIGINATOR 0x0010 559#define INS_BELOW_ORIGINATOR 0x0010
546#define INS_MAP_LOAD 0x0020 560#define INS_MAP_LOAD 0x0020
547 561
548#define ARCH_SINGULARITY "singularity" 562#define ARCH_SINGULARITY "singularity"
549#define ARCH_SINGULARITY_LEN 11
550#define ARCH_DETECT_MAGIC "detect_magic" 563#define ARCH_DETECT_MAGIC "detect_magic"
551#define ARCH_DEPLETION "depletion" 564#define ARCH_DEPLETION "depletion"
552#define ARCH_SYMPTOM "symptom" 565#define ARCH_SYMPTOM "symptom"
553 566
554#endif 567#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines