summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/newgame.h
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-03-11 22:57:13 +0100
committerRaphael Langella <raphael.langella@gmail.com>2011-03-11 22:57:13 +0100
commitc9a628a6d3a04977a901ed3b26f646d5698a154a (patch)
treeaf1a10e63260b6f56d75d9068e8bc1f5fa4b028f /crawl-ref/source/newgame.h
parentc780e151004f78dc9f18274ac6467b88c491158b (diff)
downloadcrawl-ref-c9a628a6d3a04977a901ed3b26f646d5698a154a.tar.gz
crawl-ref-c9a628a6d3a04977a901ed3b26f646d5698a154a.zip
New background choice layout.
Grouped by category, as suggested on the tavern: https://crawl.develz.org/tavern/viewtopic.php?p=9905#p9905
Diffstat (limited to 'crawl-ref/source/newgame.h')
-rw-r--r--crawl-ref/source/newgame.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/crawl-ref/source/newgame.h b/crawl-ref/source/newgame.h
index 54d69764b3..c4e4a301ee 100644
--- a/crawl-ref/source/newgame.h
+++ b/crawl-ref/source/newgame.h
@@ -9,6 +9,7 @@
#define NEWGAME_H
#include "newgame_def.h"
+#include "menu.h"
undead_state_type get_undead_state(const species_type sp);
void choose_tutorial_character(newgame_def* ng_choice);
@@ -20,4 +21,20 @@ void make_rod(item_def &item, stave_type rod_type, int ncharges);
int start_to_wand(int wandtype, bool& is_rod);
int start_to_book(int firstbook, int booktype);
+#define JOB_GROUP_SIZE 9
+/*
+ * A structure for grouping backgrounds by category.
+ */
+struct job_group
+{
+ const char* name; //<! Name of the group.
+ coord_def position; //<! Relative coordinates of the title.
+ int width; //<! Column width.
+ job_type jobs[JOB_GROUP_SIZE]; //<! List of jobs in the group.
+
+ //! A method to attach the group to a freeform.
+ void attach(const newgame_def* ng, const newgame_def& defaults,
+ MenuFreeform* menu, menu_letter &letter);
+};
+
#endif