… | |
… | |
2196 | player *first () |
2196 | player *first () |
2197 | CODE: |
2197 | CODE: |
2198 | RETVAL = first_player; |
2198 | RETVAL = first_player; |
2199 | OUTPUT: RETVAL |
2199 | OUTPUT: RETVAL |
2200 | |
2200 | |
2201 | player *next (player *pl) |
|
|
2202 | CODE: |
|
|
2203 | RETVAL = pl->next; |
|
|
2204 | OUTPUT: RETVAL |
|
|
2205 | |
|
|
2206 | bool |
2201 | bool |
2207 | cell_visible (player *pl, int dx, int dy) |
2202 | cell_visible (player *pl, int dx, int dy) |
2208 | CODE: |
2203 | CODE: |
2209 | RETVAL = FABS (dx) <= pl->ns->mapx / 2 && FABS (dy) <= pl->ns->mapy / 2 |
2204 | RETVAL = FABS (dx) <= pl->ns->mapx / 2 && FABS (dy) <= pl->ns->mapy / 2 |
2210 | && !pl->blocked_los [dx + pl->ns->mapx / 2][dy + pl->ns->mapy / 2]; |
2205 | && !pl->blocked_los [dx + pl->ns->mapx / 2][dy + pl->ns->mapy / 2]; |