19 #ifndef OPENXCOM_SOLDIERNAMEPOOL_H
20 #define OPENXCOM_SOLDIERNAMEPOOL_H
24 #include "../Savegame/Soldier.h"
38 std::vector<std::wstring> _maleFirst, _femaleFirst, _maleLast, _femaleLast;
39 std::vector<int> _lookWeights;
47 void load(
const std::string &filename);
49 std::wstring
genName(SoldierGender *gender)
const;
51 size_t genLook(
size_t numLooks);
std::wstring genName(SoldierGender *gender) const
Generates a new name from the pool.
Definition: SoldierNamePool.cpp:93
~SoldierNamePool()
Cleans up the pool.
Definition: SoldierNamePool.cpp:42
size_t genLook(size_t numLooks)
Generates an int representing the index of the soldier's look, when passed the maximum index value...
Definition: SoldierNamePool.cpp:127
Pool of soldier names to generate random names.
Definition: SoldierNamePool.h:35
SoldierNamePool()
Creates a blank pool.
Definition: SoldierNamePool.cpp:35
void load(const std::string &filename)
Loads the pool from YAML.
Definition: SoldierNamePool.cpp:50