coord.h File Reference

Go to the source code of this file.

Functions

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)
coord_def random_in_bounds ()
bool in_bounds (const coord_def &p)
bool map_bounds (const coord_def &p)
bool map_bounds_with_margin (coord_def p, int margin)
bool show_bounds (const coord_def &p)
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)
coord_def player2grid (const coord_def &pc)
coord_def grid2player (const coord_def &pc)


Function Documentation

bool adjacent ( const coord_def p1,
const coord_def p2 
)

Here is the call graph for this function:

int distance ( const coord_def p1,
const coord_def p2 
)

Here is the call graph for this function:

coord_def grid2player ( const coord_def pc  ) 

Here is the call graph for this function:

int grid_distance ( const coord_def p1,
const coord_def p2 
)

Here is the call graph for this function:

bool in_bounds ( const coord_def p  )  [inline]

Here is the call graph for this function:

bool in_bounds ( int  x,
int  y 
)

Here is the call graph for this function:

bool in_bounds_x ( int  x  ) 

bool in_bounds_y ( int  y  ) 

bool map_bounds ( const coord_def p  )  [inline]

Here is the call graph for this function:

bool map_bounds ( int  x,
int  y 
)

Here is the call graph for this function:

bool map_bounds_with_margin ( coord_def  p,
int  margin 
)

bool map_bounds_x ( int  x  ) 

bool map_bounds_y ( int  y  ) 

coord_def player2grid ( const coord_def pc  ) 

coord_def random_in_bounds (  ) 

Here is the call graph for this function:

bool show_bounds ( const coord_def p  )  [inline]


Generated on Thu Jan 13 13:03:43 2011 by  doxygen 1.5.6