dgn_region Class Reference

#include <dungeon.h>

Collaboration diagram for dgn_region:

Collaboration graph
[legend]

List of all members.

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


Constructor & Destructor Documentation

dgn_region::dgn_region ( int  left,
int  top,
int  width,
int  height 
) [inline]

dgn_region::dgn_region ( const coord_def _pos,
const coord_def _size 
) [inline]

dgn_region::dgn_region (  )  [inline]


Member Function Documentation

coord_def dgn_region::end (  )  const [inline]

coord_def dgn_region::random_edge_point (  )  const

Here is the call graph for this function:

coord_def dgn_region::random_point (  )  const

Here is the call graph for this function:

static dgn_region dgn_region::absolute ( int  left,
int  top,
int  right,
int  bottom 
) [inline, static]

Here is the call graph for this function:

static dgn_region dgn_region::absolute ( const coord_def c1,
const coord_def c2 
) [inline, static]

Here is the call graph for this function:

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

Here is the call graph for this function:

bool dgn_region::overlaps_any ( const dgn_region_list others  )  const

Here is the call graph for this function:

bool dgn_region::overlaps ( const dgn_region_list others,
const map_mask dgn_map_mask 
) const

Here is the call graph for this function:

bool dgn_region::overlaps ( const map_mask dgn_map_mask  )  const


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Thu Jan 13 13:33:05 2011 by  doxygen 1.5.6