The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
markov_generator.cpp File Reference

Generate race-specific unit-names. More...

#include "markov_generator.hpp"
#include "serialization/unicode_cast.hpp"
#include "random_new.hpp"
Include dependency graph for markov_generator.cpp:

Go to the source code of this file.

Functions

static void add_prefixes (const ucs4::string &str, size_t length, markov_prefix_map &res)
 
static markov_prefix_map markov_prefixes (const std::vector< std::string > &items, size_t length)
 
static ucs4::string markov_generate_name (const markov_prefix_map &prefixes, size_t chain_size, size_t max_len)
 

Detailed Description

Generate race-specific unit-names.

Definition in file markov_generator.cpp.

Function Documentation

static void add_prefixes ( const ucs4::string str,
size_t  length,
markov_prefix_map res 
)
static

Definition at line 25 of file markov_generator.cpp.

References i.

Referenced by markov_prefixes().

static ucs4::string markov_generate_name ( const markov_prefix_map prefixes,
size_t  chain_size,
size_t  max_len 
)
static
static markov_prefix_map markov_prefixes ( const std::vector< std::string > &  items,
size_t  length 
)
static

Definition at line 35 of file markov_generator.cpp.

References add_prefixes(), and i.