diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-23 20:22:17 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-23 20:30:14 +0200 |
commit | bea4408fe95cd8660cafc4dbedba321ebc4f0b12 (patch) | |
tree | 48a93386188ed565359d1a62c4f464f89bed6c7b /crawl-ref/source/species.h | |
parent | 99a646377ec4f88d4cdea7b18ea8e49dbb1d6516 (diff) | |
download | crawl-ref-bea4408fe95cd8660cafc4dbedba321ebc4f0b12.tar.gz crawl-ref-bea4408fe95cd8660cafc4dbedba321ebc4f0b12.zip |
Moving data out of newgame.cc.
Also move species<->string translation from player.cc to species.cc.
Diffstat (limited to 'crawl-ref/source/species.h')
-rw-r--r-- | crawl-ref/source/species.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/crawl-ref/source/species.h b/crawl-ref/source/species.h new file mode 100644 index 0000000000..03709311fa --- /dev/null +++ b/crawl-ref/source/species.h @@ -0,0 +1,19 @@ +#ifndef SPECIES_H +#define SPECIES_H + +// from newgame.cc +species_type get_species(const int index); +species_type random_draconian_player_species(); +int ng_num_species(); +int get_species_by_abbrev(const char *abbrev); +const char *get_species_abbrev(int which_species); +int get_species_index_by_abbrev(const char *abbrev); +int get_species_index_by_name(const char *name); + +// from player.cc +std::string species_name( species_type speci, int level, bool genus = false, + bool adj = false ); +int str_to_species(const std::string &species); + +#endif + |