mapdef.h File Reference

#include <string>
#include <vector>
#include <cstdio>
#include <memory>
#include "dlua.h"
#include "enum.h"
#include "externs.h"
#include "matrix.h"
#include "fprop.h"
#include "makeitem.h"
#include "travel_defs.h"

Include dependency graph for mapdef.h:

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

Go to the source code of this file.

Classes

class  map_load_exception
struct  raw_range
struct  level_range
class  subst_spec
class  nsubst_spec
class  map_colour_list
class  colour_spec
class  map_fprop_list
class  map_featheight_list
class  fprop_spec
class  fheight_spec
class  map_marker_spec
class  map_string_list
class  string_spec
class  map_lines
class  map_lines::iterator
struct  map_lines::overlay_def
class  item_spec
class  item_list
struct  item_list::item_spec_slot
class  mons_spec
class  mons_list
struct  mons_list::mons_spec_slot
struct  feature_spec
struct  feature_slot
struct  map_flags
struct  keyed_mapspec
class  dlua_set_map
struct  map_file_place
struct  map_chance
struct  map_chance_pair
class  depth_ranges
struct  depth_range_X< X >
class  depth_ranges_X< X >
class  map_def
struct  map_def::map_feature_finder
struct  map_def::map_bounds_check

Typedefs

typedef std::pair< int, int > glyph_weighted_replacement_t
typedef std::vector
< glyph_weighted_replacement_t
glyph_replacements_t
typedef std::pair< int, int > map_weighted_colour
typedef std::pair< unsigned
long, int > 
map_weighted_fprop
typedef std::pair< int, int > map_weighted_fheight
typedef std::pair< std::string,
int > 
map_weighted_string
typedef std::vector< item_specitem_spec_list
typedef std::vector< feature_specfeature_spec_list
typedef std::vector< level_rangedepth_ranges_v

Enumerations

enum  map_section_type {
  MAP_NONE = -1, MAP_NORTH = 1, MAP_SOUTH, MAP_EAST,
  MAP_WEST, MAP_NORTHWEST, MAP_NORTHEAST, MAP_SOUTHWEST,
  MAP_SOUTHEAST, MAP_ENCOMPASS, MAP_FLOAT, MAP_NUM_SECTION_TYPES
}
enum  item_spec_type {
  ISPEC_GOOD = -2, ISPEC_SUPERB = -3, ISPEC_DAMAGED = -4, ISPEC_BAD = -5,
  ISPEC_RANDART = -6, ISPEC_ACQUIREMENT = -9
}

Functions

template<class T>
std::string parse_weighted_str (const std::string &cspec, T &list)
dungeon_feature_type map_feature_at (map_def *map, const coord_def &c, int rawfeat)
void map_register_flag (const std::string &flag)
std::string escape_string (std::string in, const std::string &toesc, const std::string &escapewith)
std::string mapdef_split_key_item (const std::string &s, std::string *key, int *separator, std::string *arg, int key_max_len=1)
const char * map_section_name (int msect)
int store_tilename_get_index (const std::string tilename)

Variables

const int DEFAULT_CHANCE_PRIORITY = 100
const int CHANCE_ROLL = 10000


Typedef Documentation

typedef std::vector<level_range> depth_ranges_v

typedef std::vector<feature_spec> feature_spec_list

typedef std::pair<int,int> glyph_weighted_replacement_t

typedef std::vector<item_spec> item_spec_list

typedef std::pair<int, int> map_weighted_colour

typedef std::pair<int, int> map_weighted_fheight

typedef std::pair<unsigned long, int> map_weighted_fprop

typedef std::pair<std::string, int> map_weighted_string


Enumeration Type Documentation

Enumerator:
ISPEC_GOOD 
ISPEC_SUPERB 
ISPEC_DAMAGED 
ISPEC_BAD 
ISPEC_RANDART 
ISPEC_ACQUIREMENT 

Enumerator:
MAP_NONE 
MAP_NORTH 
MAP_SOUTH 
MAP_EAST 
MAP_WEST 
MAP_NORTHWEST 
MAP_NORTHEAST 
MAP_SOUTHWEST 
MAP_SOUTHEAST 
MAP_ENCOMPASS 
MAP_FLOAT 
MAP_NUM_SECTION_TYPES 


Function Documentation

std::string escape_string ( std::string  in,
const std::string toesc,
const std::string escapewith 
)

dungeon_feature_type map_feature_at ( map_def map,
const coord_def c,
int  rawfeat 
)

Here is the call graph for this function:

void map_register_flag ( const std::string flag  ) 

const char* map_section_name ( int  msect  ) 

std::string mapdef_split_key_item ( const std::string s,
std::string key,
int *  separator,
std::string arg,
int  key_max_len = 1 
)

Here is the call graph for this function:

template<class T>
std::string parse_weighted_str ( const std::string cspec,
T &  list 
) [inline]

Here is the call graph for this function:

int store_tilename_get_index ( const std::string  tilename  ) 


Variable Documentation

const int CHANCE_ROLL = 10000

const int DEFAULT_CHANCE_PRIORITY = 100


Generated on Thu Jan 13 13:09:39 2011 by  doxygen 1.5.6