summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-23 13:23:48 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-23 20:30:13 +0200
commit99a646377ec4f88d4cdea7b18ea8e49dbb1d6516 (patch)
tree0a50bf4e6d4110365f4d58ce83103d4e41890325
parent4e9f5b7e8e2337062f4f167e469275b08b5f6ceb (diff)
downloadcrawl-ref-99a646377ec4f88d4cdea7b18ea8e49dbb1d6516.tar.gz
crawl-ref-99a646377ec4f88d4cdea7b18ea8e49dbb1d6516.zip
Move new-game enums to newgame.h.
-rw-r--r--crawl-ref/source/enum.h29
-rw-r--r--crawl-ref/source/newgame.h44
2 files changed, 36 insertions, 37 deletions
diff --git a/crawl-ref/source/enum.h b/crawl-ref/source/enum.h
index 8e20a3e7c5..a32613eb8e 100644
--- a/crawl-ref/source/enum.h
+++ b/crawl-ref/source/enum.h
@@ -802,35 +802,6 @@ enum confirm_level_type
CONFIRM_ALL_EASY
};
-enum death_knight_type
-{
- DK_NO_SELECTION,
- DK_NECROMANCY,
- DK_YREDELEMNUL,
- DK_RANDOM
-};
-
-enum startup_book_type
-{
- SBT_NO_SELECTION = 0,
- SBT_FIRE,
- SBT_COLD,
- SBT_SUMM,
- SBT_RANDOM
-};
-
-enum startup_wand_type
-{
- SWT_NO_SELECTION = 0,
- SWT_ENSLAVEMENT,
- SWT_CONFUSION,
- SWT_MAGIC_DARTS,
- SWT_FROST,
- SWT_FLAME,
- SWT_STRIKING, // actually a rod
- SWT_RANDOM
-};
-
// When adding new delays, update their names in delay.cc, or bad things will
// happen.
enum delay_type
diff --git a/crawl-ref/source/newgame.h b/crawl-ref/source/newgame.h
index 3333094a2a..4dc9446073 100644
--- a/crawl-ref/source/newgame.h
+++ b/crawl-ref/source/newgame.h
@@ -8,18 +8,46 @@
#ifndef NEWGAME_H
#define NEWGAME_H
+enum death_knight_type
+{
+ DK_NO_SELECTION,
+ DK_NECROMANCY,
+ DK_YREDELEMNUL,
+ DK_RANDOM
+};
+
+enum startup_book_type
+{
+ SBT_NO_SELECTION = 0,
+ SBT_FIRE,
+ SBT_COLD,
+ SBT_SUMM,
+ SBT_RANDOM
+};
+
+enum startup_wand_type
+{
+ SWT_NO_SELECTION = 0,
+ SWT_ENSLAVEMENT,
+ SWT_CONFUSION,
+ SWT_MAGIC_DARTS,
+ SWT_FROST,
+ SWT_FLAME,
+ SWT_STRIKING, // actually a rod
+ SWT_RANDOM
+};
/* ***********************************************************************
* 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 );
+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: debug and hiscores