ScummVM API documentation
conversationdata.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22/*
23 * This code is based on the CRAB engine
24 *
25 * Copyright (c) Arvind Raja Yadav
26 *
27 * Licensed under MIT
28 *
29 */
30
31#ifndef CRAB_CONVERSATIONDATA_H
32#define CRAB_CONVERSATIONDATA_H
33
34#include "crab/event/changeval.h"
35#include "crab/event/triggerset.h"
36
37namespace Crab {
38
39namespace pyrodactyl {
40namespace event {
42 // The text for the reply
43 Common::String _text;
44
45 // The tone of the response
46 uint _tone;
47
48 // The next event id
49 uint _nextid;
50
51 // The conditions to unlock this choice
52 TriggerSet _unlock;
53
54 // The changes to opinion that are possible for this reply
55 // All NPCs affected by this conversation
57
58 ReplyChoice() {
59 _tone = 0;
60 _nextid = 0;
61 }
62
63 ReplyChoice(rapidxml::xml_node<char> *node) : ReplyChoice() {
64 load(node);
65 }
66
67 void load(rapidxml::xml_node<char> *node);
68};
69
71 // The set of replies
73
75
76 void load(rapidxml::xml_node<char> *node);
77};
78} // End of namespace event
79} // End of namespace pyrodactyl
80
81} // End of namespace Crab
82
83#endif // CRAB_CONVERSATIONDATA_H
Definition: array.h:52
Definition: str.h:59
Definition: triggerset.h:40
Definition: conversationdata.h:70
Definition: conversationdata.h:41