los.h File Reference

#include "coord-circle.h"
#include "losparam.h"

Include dependency graph for los.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define EPSILON_VALUE   0.00001
#define BDS_DEFAULT   (circle_def())
#define BDS_CONSTANT   (circle_def(LOS_MAX_RANGE, C_ROUND))

Typedefs

typedef SquareArray< bool,
LOS_MAX_RANGE > 
los_grid

Functions

bool double_is_zero (const double x)
void set_los_radius (int r)
int get_los_radius_sq ()
bool find_ray (const coord_def &source, const coord_def &target, ray_def &ray, const opacity_func &opc=opc_solid, const circle_def &bds=BDS_CONSTANT, bool cycle=false)
bool exists_ray (const coord_def &source, const coord_def &target, const opacity_func &opc=opc_solid, const circle_def &bds=BDS_CONSTANT)
dungeon_feature_type ray_blocker (const coord_def &source, const coord_def &target)
void fallback_ray (const coord_def &source, const coord_def &target, ray_def &ray)
int num_feats_between (const coord_def &source, const coord_def &target, dungeon_feature_type min_feat, dungeon_feature_type max_feat, bool exclude_endpoints=true, bool just_check=false)
bool cell_see_cell (const coord_def &p1, const coord_def &p2)
void clear_rays_on_exit ()
void losight (los_grid &sh, const coord_def &center, const opacity_func &opc=opc_default, const circle_def &bds=BDS_DEFAULT)
void losight (los_grid &sh, const los_param &param)
void los_actor_moved (const actor *act, const coord_def &oldpos)
void los_monster_died (const monster *mon)
void los_terrain_changed (const coord_def &p)
void los_cloud_changed (const coord_def &p)
void los_changed ()


Define Documentation

#define BDS_CONSTANT   (circle_def(LOS_MAX_RANGE, C_ROUND))

#define BDS_DEFAULT   (circle_def())

#define EPSILON_VALUE   0.00001


Typedef Documentation

typedef SquareArray<bool, LOS_MAX_RANGE> los_grid


Function Documentation

bool cell_see_cell ( const coord_def p1,
const coord_def p2 
)

Here is the call graph for this function:

void clear_rays_on_exit (  ) 

bool double_is_zero ( const double  x  ) 

bool exists_ray ( const coord_def source,
const coord_def target,
const opacity_func opc = opc_solid,
const circle_def bds = BDS_CONSTANT 
)

Here is the call graph for this function:

void fallback_ray ( const coord_def source,
const coord_def target,
ray_def ray 
)

bool find_ray ( const coord_def source,
const coord_def target,
ray_def ray,
const opacity_func opc = opc_solid,
const circle_def bds = BDS_CONSTANT,
bool  cycle = false 
)

Here is the call graph for this function:

int get_los_radius_sq (  ) 

void los_actor_moved ( const actor act,
const coord_def oldpos 
)

Here is the call graph for this function:

void los_changed (  ) 

Here is the call graph for this function:

void los_cloud_changed ( const coord_def p  ) 

Here is the call graph for this function:

void los_monster_died ( const monster mon  ) 

Here is the call graph for this function:

void los_terrain_changed ( const coord_def p  ) 

Here is the call graph for this function:

void losight ( los_grid sh,
const los_param param 
)

Here is the call graph for this function:

void losight ( los_grid sh,
const coord_def center,
const opacity_func opc = opc_default,
const circle_def bds = BDS_DEFAULT 
)

Here is the call graph for this function:

int num_feats_between ( const coord_def source,
const coord_def target,
dungeon_feature_type  min_feat,
dungeon_feature_type  max_feat,
bool  exclude_endpoints = true,
bool  just_check = false 
)

Here is the call graph for this function:

dungeon_feature_type ray_blocker ( const coord_def source,
const coord_def target 
)

Here is the call graph for this function:

void set_los_radius ( int  r  ) 

Here is the call graph for this function:


Generated on Thu Jan 13 13:08:57 2011 by  doxygen 1.5.6