… | |
… | |
1631 | const_iv (ST_DEAD) |
1631 | const_iv (ST_DEAD) |
1632 | const_iv (ST_SETUP) |
1632 | const_iv (ST_SETUP) |
1633 | const_iv (ST_PLAYING) |
1633 | const_iv (ST_PLAYING) |
1634 | const_iv (ST_CUSTOM) |
1634 | const_iv (ST_CUSTOM) |
1635 | |
1635 | |
1636 | const_iv (ST_PLAY_AGAIN) |
|
|
1637 | const_iv (ST_ROLL_STAT) |
|
|
1638 | const_iv (ST_CHANGE_CLASS) |
1636 | const_iv (ST_CHANGE_CLASS) |
1639 | const_iv (ST_CONFIRM_QUIT) |
1637 | const_iv (ST_CONFIRM_QUIT) |
1640 | const_iv (ST_CONFIGURE) |
|
|
1641 | const_iv (ST_GET_NAME) |
|
|
1642 | const_iv (ST_GET_PASSWORD) |
|
|
1643 | const_iv (ST_CONFIRM_PASSWORD) |
|
|
1644 | const_iv (ST_GET_PARTY_PASSWORD) |
1638 | const_iv (ST_GET_PARTY_PASSWORD) |
1645 | }; |
1639 | }; |
1646 | |
1640 | |
1647 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
1641 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
1648 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
1642 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
… | |
… | |
1875 | object *o; |
1869 | object *o; |
1876 | for (o = obj->inv; o; o = o->below) |
1870 | for (o = obj->inv; o; o = o->below) |
1877 | XPUSHs (sv_2mortal (to_sv (o))); |
1871 | XPUSHs (sv_2mortal (to_sv (o))); |
1878 | } |
1872 | } |
1879 | |
1873 | |
|
|
1874 | void |
|
|
1875 | set_animation (object *op, int idx) |
|
|
1876 | CODE: |
|
|
1877 | SET_ANIMATION (op, idx); |
|
|
1878 | |
|
|
1879 | void |
|
|
1880 | object::drain_stat () |
|
|
1881 | |
|
|
1882 | void |
|
|
1883 | object::drain_specific_stat (int stat) |
|
|
1884 | |
|
|
1885 | void |
|
|
1886 | object::change_luck (int change) |
|
|
1887 | |
|
|
1888 | void |
|
|
1889 | object::add_statbonus () |
|
|
1890 | |
|
|
1891 | void |
|
|
1892 | object::remove_statbonus () |
|
|
1893 | |
1880 | object *find_best_object_match (object *op, const char *match) |
1894 | object *find_best_object_match (object *op, const char *match) |
1881 | |
1895 | |
1882 | object *find_marked_object (object *op) |
1896 | object *find_marked_object (object *op) |
1883 | |
1897 | |
1884 | int resistance (object *op, int rtype, int newval = 0) |
1898 | int resistance (object *op, int rtype, int newval = 0) |
… | |
… | |
1984 | |
1998 | |
1985 | object *cf_object_insert_in_ob (object *ob, object *where) |
1999 | object *cf_object_insert_in_ob (object *ob, object *where) |
1986 | |
2000 | |
1987 | int cf_object_teleport (object *op, maptile *map, int x, int y) |
2001 | int cf_object_teleport (object *op, maptile *map, int x, int y) |
1988 | |
2002 | |
1989 | void update (object *op, int action) |
2003 | void update_object (object *op, int action) |
1990 | CODE: |
|
|
1991 | update_object (op, action); |
|
|
1992 | |
2004 | |
1993 | object *cf_create_object_by_name (const char *name) |
2005 | object *cf_create_object_by_name (const char *name) |
1994 | |
2006 | |
1995 | void change_exp (object *op, uint64 exp, const char *skill_name = 0, int flag = 0) |
2007 | void change_exp (object *op, uint64 exp, const char *skill_name = 0, int flag = 0) |
1996 | |
2008 | |
… | |
… | |
2008 | |
2020 | |
2009 | void remove_button_link (object *op); |
2021 | void remove_button_link (object *op); |
2010 | |
2022 | |
2011 | |
2023 | |
2012 | MODULE = cf PACKAGE = cf::object PREFIX = cf_ |
2024 | MODULE = cf PACKAGE = cf::object PREFIX = cf_ |
2013 | |
|
|
2014 | void cf_fix_object (object *pl) |
|
|
2015 | ALIAS: fix = 0 |
|
|
2016 | |
2025 | |
2017 | object *cf_insert_ob_in_ob (object *ob, object *where) |
2026 | object *cf_insert_ob_in_ob (object *ob, object *where) |
2018 | |
2027 | |
2019 | # no clean way to get an object from an archetype - stupid idiotic |
2028 | # no clean way to get an object from an archetype - stupid idiotic |
2020 | # dumb kludgy misdesigned plug-in api slowly gets on my nerves. |
2029 | # dumb kludgy misdesigned plug-in api slowly gets on my nerves. |
… | |
… | |
2043 | |
2052 | |
2044 | player *contr (object *op) |
2053 | player *contr (object *op) |
2045 | CODE: |
2054 | CODE: |
2046 | RETVAL = op->contr; |
2055 | RETVAL = op->contr; |
2047 | OUTPUT: RETVAL |
2056 | OUTPUT: RETVAL |
|
|
2057 | |
|
|
2058 | void |
|
|
2059 | object::roll_stats () |
|
|
2060 | |
|
|
2061 | void |
|
|
2062 | object::update_stats () |
|
|
2063 | |
|
|
2064 | void |
|
|
2065 | object::swap_stats (int a, int b) |
2048 | |
2066 | |
2049 | const char *get_ob_key_value (object *op, const char *key) |
2067 | const char *get_ob_key_value (object *op, const char *key) |
2050 | |
2068 | |
2051 | bool set_ob_key_value (object *op, const char *key, const char *value = 0, int add_key = 1) |
2069 | bool set_ob_key_value (object *op, const char *key, const char *value = 0, int add_key = 1) |
2052 | |
2070 | |
… | |
… | |
2137 | for (int i = 2; i < items; i++) av_push (av, SvREFCNT_inc (ST (i))); |
2155 | for (int i = 2; i < items; i++) av_push (av, SvREFCNT_inc (ST (i))); |
2138 | RETVAL = INVOKE_((event_type)event, ARG_PLAYER (pl), ARG_AV (av)); |
2156 | RETVAL = INVOKE_((event_type)event, ARG_PLAYER (pl), ARG_AV (av)); |
2139 | OUTPUT: RETVAL |
2157 | OUTPUT: RETVAL |
2140 | |
2158 | |
2141 | SV *registry (player *pl) |
2159 | SV *registry (player *pl) |
|
|
2160 | |
|
|
2161 | player * |
|
|
2162 | create () |
|
|
2163 | CODE: |
|
|
2164 | RETVAL = player::create (); |
|
|
2165 | OUTPUT: |
|
|
2166 | RETVAL |
|
|
2167 | |
|
|
2168 | player * |
|
|
2169 | load (const char *path) |
|
|
2170 | CODE: |
|
|
2171 | RETVAL = player::load (path); |
|
|
2172 | OUTPUT: |
|
|
2173 | RETVAL |
|
|
2174 | |
|
|
2175 | void |
|
|
2176 | player::save (bool final = false) |
|
|
2177 | |
|
|
2178 | void |
|
|
2179 | player::connect (client *ns) |
|
|
2180 | |
|
|
2181 | void |
|
|
2182 | save_stats (player *pl) |
|
|
2183 | CODE: |
|
|
2184 | pl->ob->stats.hp = pl->ob->stats.maxhp; |
|
|
2185 | pl->ob->stats.sp = pl->ob->stats.maxsp; |
|
|
2186 | pl->ob->stats.grace = pl->ob->stats.maxgrace; |
|
|
2187 | pl->orig_stats = pl->ob->stats; |
2142 | |
2188 | |
2143 | player *cf_player_find (char *name) |
2189 | player *cf_player_find (char *name) |
2144 | PROTOTYPE: $ |
2190 | PROTOTYPE: $ |
2145 | |
2191 | |
2146 | void cf_player_move (player *pl, int dir) |
2192 | void cf_player_move (player *pl, int dir) |