File: quest_type.hpp

package info (click to toggle)
tome 2.4~0.git.2015.12.29-1.1
  • links: PTS, VCS
  • area: non-free
  • in suites: stretch
  • size: 13,712 kB
  • ctags: 10,771
  • sloc: cpp: 134,109; ansic: 7,229; sh: 283; makefile: 70
file content (27 lines) | stat: -rw-r--r-- 616 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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. */
};