NameGenerator

Members

Methods

void clear( )

Clear all internal data, including the name list and mutation chance.

void read( string& filename, bool resolve = true )

Read the list of names from a file.

void write( string& filename, bool resolve = true )

Write the list of names to a file.

bool hasName( string& name )

Check whether a name is in the internal name list. Returns bool : Whether it is in the list.

uint get_nameCount( )

Returns uint : The total amount of names stored in this generator.

void addName( string& name )

Add a name to the internal name list.

void addAssociation( int first, int second, int next )

Add a character association to the markov chance tree.

string generate( )

Generate a new name using this name generator's rules. Returns string : Generated name.