#include "AppHdr.h"#include "coord.h"#include "random.h"#include "state.h"#include "viewgeom.h"

Functions | |
| int | grid_distance (const coord_def &p1, const coord_def &p2) |
| int | distance (const coord_def &p1, const coord_def &p2) |
| bool | adjacent (const coord_def &p1, const coord_def &p2) |
| bool | in_bounds_x (int x) |
| bool | in_bounds_y (int y) |
| bool | in_bounds (int x, int y) |
| bool | map_bounds_x (int x) |
| bool | map_bounds_y (int y) |
| bool | map_bounds (int x, int y) |
| bool | map_bounds_with_margin (coord_def p, int margin) |
| coord_def | random_in_bounds () |
| coord_def | player2grid (const coord_def &pc) |
| coord_def | grid2player (const coord_def &gc) |



| bool in_bounds | ( | int | x, | |
| int | y | |||
| ) |

| bool in_bounds_x | ( | int | x | ) |
| bool in_bounds_y | ( | int | y | ) |
| bool map_bounds | ( | int | x, | |
| int | y | |||
| ) |

| bool map_bounds_with_margin | ( | coord_def | p, | |
| int | margin | |||
| ) |
| bool map_bounds_x | ( | int | x | ) |
| bool map_bounds_y | ( | int | y | ) |
| coord_def random_in_bounds | ( | ) |

1.5.6