#include <dungeon.h>
Public Member Functions | |
dgn_region (int left, int top, int width, int height) | |
dgn_region (const coord_def &_pos, const coord_def &_size) | |
dgn_region () | |
coord_def | end () const |
coord_def | random_edge_point () const |
coord_def | random_point () const |
bool | contains (const coord_def &p) const |
bool | contains (int xp, int yp) const |
bool | fully_contains (const coord_def &p) const |
bool | overlaps (const dgn_region &other) const |
bool | overlaps_any (const dgn_region_list &others) const |
bool | overlaps (const dgn_region_list &others, const map_mask &dgn_map_mask) const |
bool | overlaps (const map_mask &dgn_map_mask) const |
Static Public Member Functions | |
static dgn_region | absolute (int left, int top, int right, int bottom) |
static dgn_region | absolute (const coord_def &c1, const coord_def &c2) |
static bool | between (int val, int low, int high) |
Public Attributes | |
coord_def | pos |
coord_def | size |
dgn_region::dgn_region | ( | int | left, | |
int | top, | |||
int | width, | |||
int | height | |||
) | [inline] |
dgn_region::dgn_region | ( | ) | [inline] |
coord_def dgn_region::end | ( | ) | const [inline] |
coord_def dgn_region::random_edge_point | ( | ) | const |
coord_def dgn_region::random_point | ( | ) | const |
static dgn_region dgn_region::absolute | ( | int | left, | |
int | top, | |||
int | right, | |||
int | bottom | |||
) | [inline, static] |
static dgn_region dgn_region::absolute | ( | const coord_def & | c1, | |
const coord_def & | c2 | |||
) | [inline, static] |
static bool dgn_region::between | ( | int | val, | |
int | low, | |||
int | high | |||
) | [inline, static] |
bool dgn_region::contains | ( | const coord_def & | p | ) | const [inline] |
bool dgn_region::contains | ( | int | xp, | |
int | yp | |||
) | const [inline] |
bool dgn_region::fully_contains | ( | const coord_def & | p | ) | const [inline] |
bool dgn_region::overlaps | ( | const dgn_region & | other | ) | const |
bool dgn_region::overlaps_any | ( | const dgn_region_list & | others | ) | const |
bool dgn_region::overlaps | ( | const dgn_region_list & | others, | |
const map_mask & | dgn_map_mask | |||
) | const |
bool dgn_region::overlaps | ( | const map_mask & | dgn_map_mask | ) | const |