diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-02 22:28:28 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-02 22:28:28 +0000 |
commit | 5893e7732cde719d06f519ba558de2f83a201f84 (patch) | |
tree | 28783d742ce55b614d8a19a6ab65133c5fe1220d /crawl-ref/source/newgame.h | |
parent | e3f71724819986ab6f4999cf728590bb7224ad61 (diff) | |
download | crawl-ref-5893e7732cde719d06f519ba558de2f83a201f84.tar.gz crawl-ref-5893e7732cde719d06f519ba558de2f83a201f84.zip |
Make Options.race and Options.class translate correctly, no matter whether
the old or new species/classes order is used.
Entails some more unborking of newgame.cc.
Also: make Esc leave the species selection screen (synonym for 'X', quit the
game), and use it to jump back to species selection from all other
selection possibilities (class, book, weapon, god) as a synonym for Bksp.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3505 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/newgame.h')
-rw-r--r-- | crawl-ref/source/newgame.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/crawl-ref/source/newgame.h b/crawl-ref/source/newgame.h index 066bab2418..c3bf9f6fce 100644 --- a/crawl-ref/source/newgame.h +++ b/crawl-ref/source/newgame.h @@ -13,7 +13,18 @@ #define NEWGAME_H -// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: initfile + * *********************************************************************** */ +int get_species_index_by_abbrev( const char *abbrev ); +int get_species_index_by_name( const char *name ); +const char *get_species_abbrev( int which_species ); + +int get_class_index_by_abbrev( const char *abbrev ); +int get_class_index_by_name( const char *name ); +const char *get_class_abbrev( int which_job ); +const char *get_class_name( int which_job ); + /* *********************************************************************** * called from: acr * *********************************************************************** */ |