gamedev
Main Page
Related Pages
Classes
Files
File List
File Members
include
Quest.h
1
#ifndef QUEST_H
2
#define QUEST_H
3
4
#include <cstring>
5
6
#include <common.h>
7
#include <inventory.h>
8
9
#define DEBUG
10
11
#define TOTAL_QUESTS 1
12
13
class
Quest
{
14
public
:
15
char
*title,*desc;
16
struct
item_t
reward;
17
Quest
(
const
char
*t,
const
char
*d,
struct
item_t
r);
18
~Quest();
19
};
20
21
class
QuestHandler
{
22
public
:
23
std::vector<const Quest *>current;
24
int
assign(
const
char
*t);
25
int
drop(
const
char
*t);
26
int
finish(
const
char
*t,
void
*completer);
27
bool
hasQuest(
const
char
*t);
28
};
29
30
#include <entities.h>
31
32
#endif // QUEST_H
Quest
Definition:
Quest.h:13
item_t
Definition:
inventory.h:58
QuestHandler
Definition:
Quest.h:21
Generated by
1.8.9.1