ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/cfperl.xs
(Generate patch)

Comparing deliantra/server/server/cfperl.xs (file contents):
Revision 1.160 by elmex, Wed Jan 31 14:11:02 2007 UTC vs.
Revision 1.161 by root, Thu Feb 1 19:15:39 2007 UTC

2057 2057
2058void cf_player_move (player *pl, int dir) 2058void cf_player_move (player *pl, int dir)
2059 2059
2060void play_sound_player_only (player *pl, int soundnum, int x = 0, int y = 0); 2060void play_sound_player_only (player *pl, int soundnum, int x = 0, int y = 0);
2061 2061
2062player *first ()
2063 CODE:
2064 RETVAL = first_player;
2065 OUTPUT: RETVAL
2066
2067bool 2062bool
2068cell_visible (player *pl, int dx, int dy) 2063cell_visible (player *pl, int dx, int dy)
2069 CODE: 2064 CODE:
2070 RETVAL = FABS (dx) <= pl->ns->mapx / 2 && FABS (dy) <= pl->ns->mapy / 2 2065 RETVAL = FABS (dx) <= pl->ns->mapx / 2 && FABS (dy) <= pl->ns->mapy / 2
2071 && !pl->blocked_los [dx + pl->ns->mapx / 2][dy + pl->ns->mapy / 2]; 2066 && !pl->blocked_los [dx + pl->ns->mapx / 2][dy + pl->ns->mapy / 2];
2372 2367
2373INCLUDE: $PERL genacc partylist ../include/player.h | 2368INCLUDE: $PERL genacc partylist ../include/player.h |
2374 2369
2375MODULE = cf PACKAGE = cf::region 2370MODULE = cf PACKAGE = cf::region
2376 2371
2377region *first () 2372void
2378 PROTOTYPE: 2373list ()
2379 CODE: 2374 PPCODE:
2380 RETVAL = first_region; 2375 for_all_regions (rgn)
2381 OUTPUT: RETVAL 2376 XPUSHs (sv_2mortal (to_sv (rgn)));
2382 2377
2383region *find (char *name) 2378region *find (char *name)
2384 PROTOTYPE: $ 2379 PROTOTYPE: $
2385 CODE: 2380 CODE:
2386 RETVAL = region::find (name); 2381 RETVAL = region::find (name);
2387 OUTPUT: RETVAL 2382 OUTPUT: RETVAL
2388 2383
2384region *find_fuzzy (char *name)
2385 PROTOTYPE: $
2386 CODE:
2387 RETVAL = region::find_fuzzy (name);
2388 OUTPUT: RETVAL
2389
2389INCLUDE: $PERL genacc region ../include/map.h | 2390INCLUDE: $PERL genacc region ../include/map.h |
2390 2391
2391MODULE = cf PACKAGE = cf::living 2392MODULE = cf PACKAGE = cf::living
2392 2393
2393INCLUDE: $PERL genacc living ../include/living.h | 2394INCLUDE: $PERL genacc living ../include/living.h |

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines