diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-20 20:08:15 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-20 20:08:15 +0000 |
commit | ebe5e29212f88a4db612ffe5707c08aaa01f818e (patch) | |
tree | fb0a90f1ae4f92250010ffca50f3300797b49379 /crawl-ref/source/branch.h | |
parent | 1aabb3c12726b02bce39e5f9ec843e18640b1fdd (diff) | |
download | crawl-ref-ebe5e29212f88a4db612ffe5707c08aaa01f818e.tar.gz crawl-ref-ebe5e29212f88a4db612ffe5707c08aaa01f818e.zip |
Refactored out branches into branch.h and branch.cc.
NOTE: This commit is *buggy*; the final Hell vaults contain buggy runes
now. Will fix later; this is a benchmark, since hopefully everything else
works.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@682 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/branch.h')
-rw-r--r-- | crawl-ref/source/branch.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/crawl-ref/source/branch.h b/crawl-ref/source/branch.h new file mode 100644 index 0000000000..1cb0cfc997 --- /dev/null +++ b/crawl-ref/source/branch.h @@ -0,0 +1,39 @@ +/* + * File: branch.h + * Summary: Dungeon branch classes + * Written by: Haran Pilpel + * + * Modified for Crawl Reference by $Author: haranp $ on $Date: 2006-11-29 13:12:52 -0500 (Wed, 29 Nov 2006) $ + * + */ + +#ifndef BRANCH_H +#define BRANCH_H + +#include "enum.h" + +struct Branch +{ + branch_type id; + branch_type parent_branch; + int depth; + int startdepth; // which level of the parent branch, + // 1 for first level + dungeon_feature_type entry_stairs; + dungeon_feature_type exit_stairs; + const char* shortname; // "Slime Pits" + const char* longname; // "The Pits of Slime" + const char* abbrevname; // "Slime" + const char* entry_message; + char floor_colour; // Zot needs special handling + char rock_colour; + int (*mons_rarity_function)(int); + int (*mons_level_function)(int); + void (*level_builder_function)(int); + int altar_chance; // in percent + int travel_shortcut; // which key to press for travel +}; + +extern Branch branches[]; + +#endif |