Freeciv-3.3
Loading...
Searching...
No Matches
Enumerations | Functions
sex.h File Reference

Go to the source code of this file.

Enumerations

enum  sex_t { SEX_UNKNOWN = -1 , SEX_FEMALE = 0 , SEX_MALE = 1 }
 

Functions

sex_t sex_by_name (const char *name)
 
const charsex_rule_name (sex_t kind)
 
const charsex_name_translation (sex_t kind)
 
const charsex_name_mnemonic (sex_t kind, const char *mnemonic)
 

Enumeration Type Documentation

◆ sex_t

Enumerator
SEX_UNKNOWN 
SEX_FEMALE 
SEX_MALE 

Definition at line 20 of file sex.h.

Function Documentation

◆ sex_by_name()

sex_t sex_by_name ( const char name)

Return sex by the name provided

Definition at line 27 of file sex.c.

Referenced by load_ruleset_nations(), and sg_load_player_main().

◆ sex_name_mnemonic()

const char * sex_name_mnemonic ( sex_t  kind,
const char mnemonic 
)

Return translated name of the sex with a mnemonic placed on it

Definition at line 74 of file sex.c.

Referenced by create_races_dialog().

◆ sex_name_translation()

const char * sex_name_translation ( sex_t  kind)

Return translated name of the sex.

Definition at line 60 of file sex.c.

Referenced by change_sex_callback(), popup_races_dialog(), races_dialog::races_dialog(), and select_random_leader().

◆ sex_rule_name()

const char * sex_rule_name ( sex_t  kind)

Return name of the sex.

Definition at line 43 of file sex.c.

Referenced by save_nation(), sex_name_translation(), and sg_save_player_main().