summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-15 23:33:50 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-15 23:33:50 +0000
commitfa763ba1bc7285247a5b1438d59633383a80cf6c (patch)
treef4b632fea66f43dc6c1415fdaa4feead0b6ff90d /crawl-ref/source/initfile.h
parent4d88632cb99d368956dec86732f7d275ffb941e8 (diff)
downloadcrawl-ref-fa763ba1bc7285247a5b1438d59633383a80cf6c.tar.gz
crawl-ref-fa763ba1bc7285247a5b1438d59633383a80cf6c.zip
Split off portions of externs.h and enum.h into other files. The
crawl_environment, player and monsters classes have been left in externs.h, which necessitates that all of the enums references by those classes stay in enums.h, since you can't forward declare an enum. However, it's a start. Also, portions of misc.{cc,h} have been split off into traps.{cc,h}, place.{cc,h} and terrain.{cc,h} git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2095 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.h')
-rw-r--r--crawl-ref/source/initfile.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.h b/crawl-ref/source/initfile.h
index c159bdb42d..9877e1bd0c 100644
--- a/crawl-ref/source/initfile.h
+++ b/crawl-ref/source/initfile.h
@@ -19,6 +19,12 @@
#include "enum.h"
+enum drop_mode_type
+{
+ DM_SINGLE,
+ DM_MULTI
+};
+
god_type str_to_god(std::string god);
int str_to_colour( const std::string &str, int default_colour = -1,
bool accept_number = true );
@@ -44,6 +50,32 @@ void apply_ascii_display(bool ascii);
* *********************************************************************** */
void get_system_environment(void);
+struct system_environment
+{
+ std::string crawl_name;
+ std::string crawl_pizza;
+ std::string crawl_rc;
+ std::string crawl_dir;
+ std::string morgue_dir;
+ std::string crawl_base; // Directory from argv[0], may be used to
+ // locate datafiles.
+ std::string home; // only used by MULTIUSER systems
+ bool board_with_nail; // Easter Egg silliness
+
+#ifdef DGL_SIMPLE_MESSAGING
+ std::string messagefile; // File containing messages from other users.
+ bool have_messages; // There are messages waiting to be read.
+ unsigned message_check_tick;
+#endif
+
+ std::string scorefile;
+ std::vector<std::string> cmd_args;
+
+ int map_gen_iters;
+};
+
+extern system_environment SysEnv;
+
// last updated 16feb2001 {gdl}
/* ***********************************************************************