diff options
Diffstat (limited to 'src/quest_type.hpp')
-rw-r--r-- | src/quest_type.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/quest_type.hpp b/src/quest_type.hpp new file mode 100644 index 00000000..ae97af35 --- /dev/null +++ b/src/quest_type.hpp @@ -0,0 +1,29 @@ +#pragma once + +#include "h-basic.h" + +#include <string> + +/** + * Quest descriptor and runtime data. + */ +struct quest_type +{ + bool_ silent; + + char name[40]; /* Quest name */ + + char desc[10][80]; /* Quest desc */ + + s16b status; /* Is the quest taken, completed, finished? */ + + s16b level; /* Dungeon level */ + + s16b *plot; /* Which plot does it belongs to? */ + + void (*init)(); /* Function that takes care of generating hardcoded quests */ + + s32b data[9]; /* Various datas used by the quests */ + + std::string (*gen_desc)(); /* Function for generating description. */ +}; |