… | |
… | |
1616 | reattach (pl); |
1616 | reattach (pl); |
1617 | |
1617 | |
1618 | for (mapstruct *map = first_map; map; map = map->next) |
1618 | for (mapstruct *map = first_map; map; map = map->next) |
1619 | reattach (map); |
1619 | reattach (map); |
1620 | |
1620 | |
1621 | for (object *op = objects; op; op = op->next) |
1621 | for (object *op = object::first; op; op = op->next) |
1622 | reattach (op); |
1622 | reattach (op); |
1623 | } |
1623 | } |
1624 | |
1624 | |
1625 | NV floor (NV x) |
1625 | NV floor (NV x) |
1626 | |
1626 | |
… | |
… | |
1674 | case 5: RETVAL = settings.playerdir; break; |
1674 | case 5: RETVAL = settings.playerdir; break; |
1675 | case 6: RETVAL = settings.datadir ; break; |
1675 | case 6: RETVAL = settings.datadir ; break; |
1676 | } |
1676 | } |
1677 | OUTPUT: RETVAL |
1677 | OUTPUT: RETVAL |
1678 | |
1678 | |
1679 | int |
1679 | void _exit (int status = 0) |
|
|
1680 | |
1680 | cf_find_animation (char *text) |
1681 | int cf_find_animation (char *text) |
1681 | PROTOTYPE: $ |
1682 | PROTOTYPE: $ |
1682 | |
1683 | |
1683 | int random_roll(int min, int max, object *op, int goodbad); |
1684 | int random_roll(int min, int max, object *op, int goodbad); |
1684 | |
1685 | |
1685 | const char *cost_string_from_value(uint64 cost, int approx = 0) |
1686 | const char *cost_string_from_value(uint64 cost, int approx = 0) |
… | |
… | |
1751 | SV *registry (object *op) |
1752 | SV *registry (object *op) |
1752 | CODE: |
1753 | CODE: |
1753 | RETVAL = registry_of (op); |
1754 | RETVAL = registry_of (op); |
1754 | OUTPUT: |
1755 | OUTPUT: |
1755 | RETVAL |
1756 | RETVAL |
|
|
1757 | |
|
|
1758 | void mortals () |
|
|
1759 | CODE: |
|
|
1760 | EXTEND (SP, object::mortals.size ()); |
|
|
1761 | for (AUTODECL (i, object::mortals.begin ()); i != object::mortals.end (); ++i) |
|
|
1762 | PUSHs (to_sv (*i)); |
|
|
1763 | |
|
|
1764 | object *first () |
|
|
1765 | CODE: |
|
|
1766 | RETVAL = object::first; |
|
|
1767 | OUTPUT: RETVAL |
1756 | |
1768 | |
1757 | INCLUDE: $PERL genacc object ../include/object.h | |
1769 | INCLUDE: $PERL genacc object ../include/object.h | |
1758 | |
1770 | |
1759 | # missing properties |
1771 | # missing properties |
1760 | |
1772 | |