l_dgn.cc File Reference

#include "AppHdr.h"
#include "l_libs.h"
#include "cluautil.h"
#include <cmath>
#include "branch.h"
#include "cloud.h"
#include "colour.h"
#include "coord.h"
#include "coordit.h"
#include "directn.h"
#include "dungeon.h"
#include "dgn-shoals.h"
#include "env.h"
#include "flood_find.h"
#include "l_defs.h"
#include "libutil.h"
#include "mapmark.h"
#include "maps.h"
#include "random.h"
#include "shout.h"
#include "spl-util.h"
#include "state.h"
#include "view.h"

Include dependency graph for l_dgn.cc:


Defines

#define WEIGHT(ls, n, weight)
#define SQRT_2   1.41421356237309504880
#define VP(name)

Typedefs

typedef flood_find
< map_def::map_feature_finder,
map_def::map_bounds_check
map_flood_finder

Functions

void dgn_reset_default_depth ()
std::string dgn_set_default_depth (const std::string &s)
int dgn_map_add_transform (lua_State *ls, std::string(map_lines::*add)(const std::string &s))
 LUAFN (dgn_noisy)
 LUAFN (dgn_with_map_bounds_fn)
 LUAFN (dgn_with_map_anchors)
 LUAFN (dgn_map_by_tag)
 LUAFN (dgn_map_by_name)
 LUAFN (dgn_map_in_depth)
 LUAFN (dgn_map_by_place)
 LUAFN (_dgn_place_map)
 LUAFN (_dgn_in_vault)
 LUAFN (_dgn_map_parameters)
int dgn_push_vault_placement (lua_State *ls, const vault_placement *vp)
 LUAFN (_dgn_maps_used_here)
 LUAFN (_dgn_vault_at)
 LUAFN (_dgn_find_marker_position_by_prop)
 LUAFN (_dgn_find_marker_positions_by_prop)
 LUAFN (_dgn_find_markers_by_prop)
 LUAFN (_dgn_marker_at_pos)
 LUAFN (dgn_is_validating)
 LUAFN (_dgn_resolve_map)
 LUAFN (_dgn_reuse_map)
 LUAWRAP (_dgn_reset_level, dgn_reset_level()) LUAFN(dgn_fill_grd_area)
 LUAFN (dgn_apply_tide)
 LUAFN (_vp_pos)
 LUAFN (_vp_size)
 LUAFN (_vp_orient)
 LUAFN (_vp_map)
 LUAFN (_vp_exits)
 LUAFN (_vp_level_number)
void dluaopen_dgn (lua_State *ls)

Variables

const char * VAULT_PLACEMENT_METATABLE = "crawl.vault-placement"
struct luaL_reg dgn_dlib []

Define Documentation

#define SQRT_2   1.41421356237309504880

#define VP ( name   ) 

Value:

vault_placement &name =                                             \
        **clua_get_userdata<vault_placement*>(                       \
            ls, VAULT_PLACEMENT_METATABLE)

#define WEIGHT ( ls,
n,
weight   ) 

Value:

const int weight = luaL_checkint(ls, n); \
    if (weight < 0)                          \
        luaL_error(ls, "Bad weight: %d (must be >= 0)", weight);


Typedef Documentation


Function Documentation

int dgn_map_add_transform ( lua_State *  ls,
std::string(map_lines::*)(const std::string &s)  add 
)

Here is the call graph for this function:

int dgn_push_vault_placement ( lua_State *  ls,
const vault_placement vp 
)

void dgn_reset_default_depth (  ) 

Here is the call graph for this function:

std::string dgn_set_default_depth ( const std::string s  ) 

Here is the call graph for this function:

void dluaopen_dgn ( lua_State *  ls  ) 

LUAFN ( _vp_level_number   ) 

LUAFN ( _vp_exits   ) 

Here is the call graph for this function:

LUAFN ( _vp_map   ) 

Here is the call graph for this function:

LUAFN ( _vp_orient   ) 

LUAFN ( _vp_size   ) 

Here is the call graph for this function:

LUAFN ( _vp_pos   ) 

Here is the call graph for this function:

LUAFN ( dgn_apply_tide   ) 

Here is the call graph for this function:

LUAFN ( _dgn_reuse_map   ) 

Here is the call graph for this function:

LUAFN ( _dgn_resolve_map   ) 

Here is the call graph for this function:

LUAFN ( dgn_is_validating   ) 

Here is the call graph for this function:

LUAFN ( _dgn_marker_at_pos   ) 

Here is the call graph for this function:

LUAFN ( _dgn_find_markers_by_prop   ) 

Here is the call graph for this function:

LUAFN ( _dgn_find_marker_positions_by_prop   ) 

Here is the call graph for this function:

LUAFN ( _dgn_find_marker_position_by_prop   ) 

Here is the call graph for this function:

LUAFN ( _dgn_vault_at   ) 

Here is the call graph for this function:

LUAFN ( _dgn_maps_used_here   ) 

Here is the call graph for this function:

LUAFN ( _dgn_map_parameters   ) 

Here is the call graph for this function:

LUAFN ( _dgn_in_vault   ) 

Here is the call graph for this function:

LUAFN ( _dgn_place_map   ) 

Here is the call graph for this function:

LUAFN ( dgn_map_by_place   ) 

Here is the call graph for this function:

LUAFN ( dgn_map_in_depth   ) 

Here is the call graph for this function:

LUAFN ( dgn_map_by_name   ) 

Here is the call graph for this function:

LUAFN ( dgn_map_by_tag   ) 

Here is the call graph for this function:

LUAFN ( dgn_with_map_anchors   ) 

Here is the call graph for this function:

LUAFN ( dgn_with_map_bounds_fn   ) 

Here is the call graph for this function:

LUAFN ( dgn_noisy   ) 

Here is the call graph for this function:

LUAWRAP ( _dgn_reset_level  ,
dgn_reset_level()   
)

Here is the call graph for this function:


Variable Documentation

struct luaL_reg dgn_dlib[]

const char* VAULT_PLACEMENT_METATABLE = "crawl.vault-placement"


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