The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Member Functions | Public Attributes | List of all members
cave_map_generator::cave_map_generator_job Struct Reference

Classes

struct  chamber
 
struct  passage
 

Public Member Functions

 cave_map_generator_job (const cave_map_generator &params, boost::optional< uint32_t > randomseed=boost::none)
 
void generate_chambers ()
 
void build_chamber (map_location loc, std::set< map_location > &locs, size_t size, size_t jagged)
 
void place_chamber (const chamber &c)
 
void place_passage (const passage &p)
 
void set_terrain (map_location loc, const t_translation::terrain_code &t)
 
void place_castle (int starting_position, const map_location &loc)
 
size_t translate_x (size_t x) const
 
size_t translate_y (size_t y) const
 

Public Attributes

const cave_map_generatorparams
 
bool flipx_
 
bool flipy_
 
t_translation::ter_map map_
 
t_translation::starting_positions starting_positions_
 
std::map< std::string, size_t > chamber_ids_
 
std::vector< chamberchambers_
 
std::vector< passagepassages_
 
config res_
 
std::mt19937 rng_
 

Detailed Description

Definition at line 40 of file cave_map_generator.hpp.

Constructor & Destructor Documentation

cave_map_generator::cave_map_generator_job::cave_map_generator_job ( const cave_map_generator params,
boost::optional< uint32_t >  randomseed = boost::none 
)

Member Function Documentation

void cave_map_generator::cave_map_generator_job::build_chamber ( map_location  loc,
std::set< map_location > &  locs,
size_t  size,
size_t  jagged 
)

Definition at line 126 of file cave_map_generator.cpp.

References get_adjacent_tiles(), and n.

void cave_map_generator::cave_map_generator_job::generate_chambers ( )
void cave_map_generator::cave_map_generator_job::place_castle ( int  starting_position,
const map_location loc 
)
void cave_map_generator::cave_map_generator_job::place_chamber ( const chamber c)
void cave_map_generator::cave_map_generator_job::place_passage ( const passage p)
void cave_map_generator::cave_map_generator_job::set_terrain ( map_location  loc,
const t_translation::terrain_code t 
)

Definition at line 335 of file cave_map_generator.cpp.

References c, gamemap::default_border, t, map_location::x, and map_location::y.

size_t cave_map_generator::cave_map_generator_job::translate_x ( size_t  x) const

Definition at line 54 of file cave_map_generator.cpp.

References flipx_, params, and cave_map_generator::width_.

size_t cave_map_generator::cave_map_generator_job::translate_y ( size_t  y) const

Definition at line 63 of file cave_map_generator.cpp.

Member Data Documentation

std::map<std::string,size_t> cave_map_generator::cave_map_generator_job::chamber_ids_

Definition at line 84 of file cave_map_generator.hpp.

std::vector<chamber> cave_map_generator::cave_map_generator_job::chambers_

Definition at line 85 of file cave_map_generator.hpp.

Referenced by cave_map_generator_job().

bool cave_map_generator::cave_map_generator_job::flipx_

Definition at line 80 of file cave_map_generator.hpp.

Referenced by cave_map_generator_job(), and translate_x().

bool cave_map_generator::cave_map_generator_job::flipy_

Definition at line 80 of file cave_map_generator.hpp.

Referenced by cave_map_generator_job().

t_translation::ter_map cave_map_generator::cave_map_generator_job::map_

Definition at line 82 of file cave_map_generator.hpp.

Referenced by cave_map_generator_job().

const cave_map_generator& cave_map_generator::cave_map_generator_job::params

Definition at line 79 of file cave_map_generator.hpp.

Referenced by cave_map_generator_job(), and translate_x().

std::vector<passage> cave_map_generator::cave_map_generator_job::passages_

Definition at line 86 of file cave_map_generator.hpp.

Referenced by cave_map_generator_job().

config cave_map_generator::cave_map_generator_job::res_
std::mt19937 cave_map_generator::cave_map_generator_job::rng_

Definition at line 88 of file cave_map_generator.hpp.

Referenced by cave_map_generator_job().

t_translation::starting_positions cave_map_generator::cave_map_generator_job::starting_positions_

Definition at line 83 of file cave_map_generator.hpp.

Referenced by cave_map_generator_job().


The documentation for this struct was generated from the following files: