coord.cc File Reference

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

Include dependency graph for coord.cc:


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)

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 gc  ) 

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 ( 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 ( 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  ) 

Here is the call graph for this function:

coord_def random_in_bounds (  ) 

Here is the call graph for this function:


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