summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.h
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2010-01-17 15:29:52 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2010-01-17 15:38:52 +1000
commitc4246fc216beca0282bf281274a3756a10086f87 (patch)
tree768ca84ef7c18324a23319797f2a0716cbf634a2 /crawl-ref/source/initfile.h
parent34d58cf8983364cfc3dc71d14a552e33ff087b5f (diff)
downloadcrawl-ref-c4246fc216beca0282bf281274a3756a10086f87.tar.gz
crawl-ref-c4246fc216beca0282bf281274a3756a10086f87.zip
Code to alter/check feature properties in Lua.
This commit moves str_to_fprop from initfile.cc to fprop.cc. It also introduces two new dungeon Lua wrappers: fprop_changed(x, y, fprop), and fprop_at(x, y, fprop). fprop_at(x, y, fprop) will return testbits(coord_def(x, y), fprop). fprop_changed will either add the fprop to that location, or if it already exists there, it will remove it from that location. It will returrn a boolean value of true if it altered the location, and false if it did nothing.
Diffstat (limited to 'crawl-ref/source/initfile.h')
-rw-r--r--crawl-ref/source/initfile.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/crawl-ref/source/initfile.h b/crawl-ref/source/initfile.h
index d2779e25b7..0a39e9db41 100644
--- a/crawl-ref/source/initfile.h
+++ b/crawl-ref/source/initfile.h
@@ -20,7 +20,6 @@ enum drop_mode_type
};
god_type str_to_god(std::string god);
-int str_to_fprop (const std::string &str);
int str_to_summon_type (const std::string &str);
std::string read_init_file(bool runscript = false);