diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-06-07 17:49:09 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-06-07 17:49:09 +0200 |
commit | c8a270e51dc22f39ed048ab1cc609e6e456df58f (patch) | |
tree | 6d6a7d2338abdbecbb1351e2c9cbf9b08b42b6bc /src/quest_type.hpp | |
parent | dcb193fabc7af4776bdf0d31045f6801fa18000e (diff) |
Split types.h into separate header for each type
Diffstat (limited to 'src/quest_type.hpp')
-rw-r--r-- | src/quest_type.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/quest_type.hpp b/src/quest_type.hpp new file mode 100644 index 00000000..aa99f40a --- /dev/null +++ b/src/quest_type.hpp @@ -0,0 +1,27 @@ +#pragma once + +#include "h-basic.h" + +/** + * 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? */ + + bool_ (*init)(int q); /* Function that takes care of generating hardcoded quests */ + + s32b data[9]; /* Various datas used by the quests */ + + bool_ (*gen_desc)(FILE *fff); /* Function for generating description. */ +}; |