… | |
… | |
101 | |
101 | |
102 | typedef char BUF [32]; |
102 | typedef char BUF [32]; |
103 | |
103 | |
104 | bool parse (const char *s) |
104 | bool parse (const char *s) |
105 | { |
105 | { |
106 | return sscanf (s, "<1%*[,.]%" SCNx64 ">", &seq) == 1; |
106 | return sscanf (s, "<1.%" SCNx64 ">", &seq) == 1; |
107 | } |
107 | } |
108 | |
108 | |
109 | const char *c_str (char *buf, int len) const |
109 | const char *c_str (char *buf, int len) const |
110 | { |
110 | { |
111 | snprintf (buf, len, "<1.%" PRIx64 ">", seq); |
111 | snprintf (buf, len, "<1.%" PRIx64 ">", seq); |
… | |
… | |
469 | MTH void activate (); |
469 | MTH void activate (); |
470 | MTH void deactivate (); |
470 | MTH void deactivate (); |
471 | MTH void activate_recursive (); |
471 | MTH void activate_recursive (); |
472 | MTH void deactivate_recursive (); |
472 | MTH void deactivate_recursive (); |
473 | |
473 | |
474 | // set the givne flag on all objects in the inventory recursively |
474 | // set the given flag on all objects in the inventory recursively |
475 | MTH void set_flag_inv (int flag, int value = 1); |
475 | MTH void set_flag_inv (int flag, int value = 1); |
476 | |
476 | |
477 | void enter_exit (object *exit);//Perl |
477 | void enter_exit (object *exit);//Perl |
478 | MTH void enter_map (maptile *newmap, int x, int y); |
478 | MTH void enter_map (maptile *newmap, int x, int y); |
479 | |
479 | |
… | |
… | |
572 | } objectlink; |
572 | } objectlink; |
573 | |
573 | |
574 | typedef struct oblinkpt |
574 | typedef struct oblinkpt |
575 | { /* Used to link together several object links */ |
575 | { /* Used to link together several object links */ |
576 | struct oblnk *link; |
576 | struct oblnk *link; |
577 | long value; /* Used as connected value in buttons/gates */ |
577 | sint32 value; /* Used as connected value in buttons/gates */ |
578 | struct oblinkpt *next; |
578 | struct oblinkpt *next; |
579 | } oblinkpt; |
579 | } oblinkpt; |
580 | |
580 | |
581 | object *find_skill_by_name (object *who, const char *name); |
581 | object *find_skill_by_name (object *who, const char *name); |
582 | object *find_skill_by_name (object *who, const shstr &sh); |
582 | object *find_skill_by_name (object *who, const shstr &sh); |