diff options
Diffstat (limited to 'crawl-ref/source/species.h')
-rw-r--r-- | crawl-ref/source/species.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/crawl-ref/source/species.h b/crawl-ref/source/species.h index d84219847c..6648fda35f 100644 --- a/crawl-ref/source/species.h +++ b/crawl-ref/source/species.h @@ -1,6 +1,20 @@ #ifndef SPECIES_H #define SPECIES_H +enum genus_type +{ + GENPC_DRACONIAN, + GENPC_ELVEN, + GENPC_DWARVEN, + GENPC_OGRE, + GENPC_NONE +}; + +genus_type species_genus(species_type species); +int species_has_claws(species_type species); +size_type species_size(species_type species, + size_part_type psize = PSIZE_TORSO); + // from newgame.cc species_type get_species(const int index); species_type random_draconian_player_species(); @@ -15,5 +29,9 @@ std::string species_name(species_type speci, int level, bool genus = false, bool adj = false); species_type str_to_species(const std::string &species); + +// species_type bounds checking. +bool is_valid_species(species_type); + #endif |