… | |
… | |
2181 | case 4: RETVAL = newSVuv ( GET_MAP_MOVE_BLOCK (obj, x, y)); break; |
2181 | case 4: RETVAL = newSVuv ( GET_MAP_MOVE_BLOCK (obj, x, y)); break; |
2182 | case 5: RETVAL = newSVuv ( GET_MAP_MOVE_SLOW (obj, x, y)); break; |
2182 | case 5: RETVAL = newSVuv ( GET_MAP_MOVE_SLOW (obj, x, y)); break; |
2183 | case 6: RETVAL = newSVuv ( GET_MAP_MOVE_ON (obj, x, y)); break; |
2183 | case 6: RETVAL = newSVuv ( GET_MAP_MOVE_ON (obj, x, y)); break; |
2184 | case 7: RETVAL = newSVuv ( GET_MAP_MOVE_OFF (obj, x, y)); break; |
2184 | case 7: RETVAL = newSVuv ( GET_MAP_MOVE_OFF (obj, x, y)); break; |
2185 | } |
2185 | } |
2186 | OUTPUT: |
2186 | OUTPUT: RETVAL |
2187 | RETVAL |
|
|
2188 | |
2187 | |
2189 | void fix_walls (maptile *map, int x, int y) |
2188 | void fix_walls (maptile *map, int x, int y) |
2190 | |
2189 | |
2191 | void fix_walls_around (maptile *map, int x, int y) |
2190 | void fix_walls_around (maptile *map, int x, int y) |
|
|
2191 | |
|
|
2192 | const char * |
|
|
2193 | region_name (maptile *m) |
|
|
2194 | CODE: |
|
|
2195 | RETVAL = get_name_of_region_for_map (m); |
|
|
2196 | OUTPUT: RETVAL |
2192 | |
2197 | |
2193 | # worst xs function of my life |
2198 | # worst xs function of my life |
2194 | maptile * |
2199 | maptile * |
2195 | _create_random_map (\ |
2200 | _create_random_map (\ |
2196 | char *path,\ |
2201 | char *path,\ |
… | |
… | |
2241 | assign (rmp.monsterstyle , monsterstyle); |
2246 | assign (rmp.monsterstyle , monsterstyle); |
2242 | assign (rmp.treasurestyle , treasurestyle); |
2247 | assign (rmp.treasurestyle , treasurestyle); |
2243 | assign (rmp.layoutstyle , layoutstyle); |
2248 | assign (rmp.layoutstyle , layoutstyle); |
2244 | assign (rmp.doorstyle , doorstyle); |
2249 | assign (rmp.doorstyle , doorstyle); |
2245 | assign (rmp.decorstyle , decorstyle); |
2250 | assign (rmp.decorstyle , decorstyle); |
2246 | assign (rmp.origin_map , origin_map); |
|
|
2247 | assign (rmp.final_map , final_map); |
|
|
2248 | assign (rmp.exitstyle , exitstyle); |
2251 | assign (rmp.exitstyle , exitstyle); |
2249 | assign (rmp.this_map , this_map); |
|
|
2250 | assign (rmp.exit_on_final_map, exit_on_final_map); |
2252 | assign (rmp.exit_on_final_map, exit_on_final_map); |
2251 | |
2253 | |
|
|
2254 | rmp.origin_map = origin_map; |
|
|
2255 | rmp.final_map = final_map; |
|
|
2256 | rmp.this_map = this_map; |
2252 | rmp.Xsize = Xsize; |
2257 | rmp.Xsize = Xsize; |
2253 | rmp.Ysize = Ysize; |
2258 | rmp.Ysize = Ysize; |
2254 | rmp.expand2x = expand2x; |
2259 | rmp.expand2x = expand2x; |
2255 | rmp.layoutoptions1 = layoutoptions1; |
2260 | rmp.layoutoptions1 = layoutoptions1; |
2256 | rmp.layoutoptions2 = layoutoptions2; |
2261 | rmp.layoutoptions2 = layoutoptions2; |
… | |
… | |
2303 | |
2308 | |
2304 | INCLUDE: $PERL genacc partylist ../include/player.h | |
2309 | INCLUDE: $PERL genacc partylist ../include/player.h | |
2305 | |
2310 | |
2306 | MODULE = cf PACKAGE = cf::region |
2311 | MODULE = cf PACKAGE = cf::region |
2307 | |
2312 | |
2308 | region *first () |
2313 | region *first () |
2309 | PROTOTYPE: |
2314 | PROTOTYPE: |
2310 | CODE: |
2315 | CODE: |
2311 | RETVAL = first_region; |
2316 | RETVAL = first_region; |
|
|
2317 | OUTPUT: RETVAL |
|
|
2318 | |
|
|
2319 | region *find (char *name) |
|
|
2320 | PROTOTYPE: $ |
|
|
2321 | CODE: |
|
|
2322 | RETVAL = get_region_by_name (name); |
2312 | OUTPUT: RETVAL |
2323 | OUTPUT: RETVAL |
2313 | |
2324 | |
2314 | INCLUDE: $PERL genacc region ../include/map.h | |
2325 | INCLUDE: $PERL genacc region ../include/map.h | |
2315 | |
2326 | |
2316 | MODULE = cf PACKAGE = cf::living |
2327 | MODULE = cf PACKAGE = cf::living |