… | |
… | |
29 | |
29 | |
30 | #include "cfperl.h" |
30 | #include "cfperl.h" |
31 | #include "shstr.h" |
31 | #include "shstr.h" |
32 | |
32 | |
33 | typedef int tag_t; |
33 | typedef 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 | |
… | |
… | |
294 | MTH void drain_specific_stat (int deplete_stats); |
295 | MTH void drain_specific_stat (int deplete_stats); |
295 | MTH void change_luck (int value); |
296 | MTH void change_luck (int value); |
296 | |
297 | |
297 | // info must hold 256 * 3 bytes currently |
298 | // info must hold 256 * 3 bytes currently |
298 | const char *debug_desc (char *info) const; |
299 | const char *debug_desc (char *info) const; |
299 | MTH const char *debug_desc () const; |
300 | MTH const char *debug_desc () const; // uses at least 3 round-robin buffers |
300 | const char *debug_desc2 () const; // another debug_desc, pure convinience function |
|
|
301 | const char *flag_desc (char *desc, int len) const; |
301 | const char *flag_desc (char *desc, int len) const; |
302 | |
302 | |
303 | int number_of () const |
303 | int number_of () const |
304 | { |
304 | { |
305 | return nrof ? nrof : 1; |
305 | return nrof ? nrof : 1; |
… | |
… | |
361 | MTH object *head_ () |
361 | MTH object *head_ () |
362 | { |
362 | { |
363 | return head ? head : this; |
363 | return head ? head : this; |
364 | } |
364 | } |
365 | |
365 | |
|
|
366 | MTH std::string long_desc (object *who = 0); |
|
|
367 | MTH std::string describe_monster (object *who = 0); |
|
|
368 | MTH std::string describe_item (object *who = 0); |
|
|
369 | MTH std::string describe (object *who = 0); |
|
|
370 | |
|
|
371 | // If this object has no extra parts but should have them, |
|
|
372 | // add them, effectively expanding heads into multipart |
|
|
373 | // objects. This method only works on objects not inserted |
|
|
374 | // anywhere. |
|
|
375 | MTH void expand_tail (); |
|
|
376 | |
|
|
377 | MTH void create_treasure (treasurelist *tl, int flags = 0); |
|
|
378 | |
366 | // insert object at same map position as 'where' |
379 | // insert object at same map position as 'where' |
367 | // handles both inventory and map "positions" |
380 | // handles both inventory and map "positions" |
368 | MTH object *insert_at (object *where, object *originator = 0, int flags = 0); |
381 | MTH object *insert_at (object *where, object *originator = 0, int flags = 0); |
369 | |
382 | |
370 | MTH void activate (); |
383 | MTH void activate (); |
… | |
… | |
373 | MTH void deactivate_recursive (); |
386 | MTH void deactivate_recursive (); |
374 | |
387 | |
375 | // set the givne flag on all objects in the inventory recursively |
388 | // set the givne flag on all objects in the inventory recursively |
376 | MTH void set_flag_inv (int flag, int value = 1); |
389 | MTH void set_flag_inv (int flag, int value = 1); |
377 | |
390 | |
378 | void enter_exit (object *exit);//PERL |
391 | void enter_exit (object *exit);//Perl |
379 | MTH void enter_map (maptile *newmap, int x, int y); |
392 | MTH void enter_map (maptile *newmap, int x, int y); |
380 | |
393 | |
381 | // returns the mapspace this object is in |
394 | // returns the mapspace this object is in |
382 | mapspace &ms () const; |
395 | mapspace &ms () const; |
383 | |
396 | |
… | |
… | |
544 | #define INS_ON_TOP 0x0008 |
557 | #define INS_ON_TOP 0x0008 |
545 | #define INS_BELOW_ORIGINATOR 0x0010 |
558 | #define INS_BELOW_ORIGINATOR 0x0010 |
546 | #define INS_MAP_LOAD 0x0020 |
559 | #define INS_MAP_LOAD 0x0020 |
547 | |
560 | |
548 | #define ARCH_SINGULARITY "singularity" |
561 | #define ARCH_SINGULARITY "singularity" |
549 | #define ARCH_SINGULARITY_LEN 11 |
|
|
550 | #define ARCH_DETECT_MAGIC "detect_magic" |
562 | #define ARCH_DETECT_MAGIC "detect_magic" |
551 | #define ARCH_DEPLETION "depletion" |
563 | #define ARCH_DEPLETION "depletion" |
552 | #define ARCH_SYMPTOM "symptom" |
564 | #define ARCH_SYMPTOM "symptom" |
553 | |
565 | |
554 | #endif |
566 | #endif |