Dungeon and Map ("dgn") Module

Namespace dgn
Defined in l_dgn.cc
l_dgngrd.cc
l_dgnlvl.cc

These functions allow access to Crawl's global state, as well as providing useful utility methods.


Quick Reference

Functions Implementing .des Commands

Syntax Returns Description
default_depth
name
desc
tags
tags_remove
orient
depth
chance
depth_chance
weight
depth_weight
place
shuffle
subst
nsubst
subvault
item
kitem
mons
kmons
kfeat
kmask
kprop
colour
lfloorcolour
lrockcolour
tile See also Tile Manipulation Functions
ftile See also Tile Manipulation Functions
rtile See also Tile Manipulation Functions
lfloortile See also Tile Manipulation Functions
lrocktile See also Tile Manipulation Functions
lflags
bflags Where is this one defined?
fheight
marker
map This adds a line to the map

Other Functions in l_dgn.cc

Syntax Returns Description
reset_level
has_tag
normalise
lua_marker
mapsize
colour_at
fprop_at
cloud_at
terrain_changed
fprop_changed
points_connected
any_point_connected
has_exit_from
gly_point
gly_points
original_map
load_des_file
register_listener
remove_listener
remove_marker
num_matching_markers
change_level_flags
get_floor_colour
get_rock_colour
change_floor_colour
change_rock_colour
set_branch_epilogue
set_border_fill_type
set_feature_name
floor_halo
random_walk
apply_area_cloud
place_cloud
delete_cloud
noisy
is_passable
map_register_flag
register_feature_marker
register_lua_marker
with_map_bounds_fn
with_map_anchors
map_by_tag
map_by_name
map_in_depth
map_by_place
place_map
reuse_map
resolve_map
in_vault
map_parameters
maps_used_here
vault_at
find_marker_position_by_prop
find_marker_positions_by_prop
find_markers_by_prop
marker_at_pos
is_validating
fill_grd_area
apply_tide

Functions in l_dgngrd.cc

Syntax Returns Description
feature_number
feature_name
feature_desc
feature_desc_at
seen_replace_feat
grid
max_bounds
in_bounds
distance

Functions in l_dgnlvl.cc

Syntax Returns Description
br_floorcol
br_rockcol
br_has_uniques
br_parent_branch
br_exists
br_depth
br_entrance
level_id
level_name

TODO: Add the functions defined in other source files.

Logged in as: Anonymous (VIEWER)
dcss/help/maps/lua/modules/dgn/start.txt · Last modified: 2014-10-04 06:44 by infiniplex
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki