ScummVM API documentation
parsons_dialogue.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#ifndef HARVESTER_NPC_PARSONS_DIALOGUE_H
23#define HARVESTER_NPC_PARSONS_DIALOGUE_H
24
25#include "harvester/npc/dialogue_handler.h"
26
27namespace Harvester {
28
30public:
32 bool introPending = true;
33 bool stephMidgameShown = false;
34 bool scratchedTuckerShown = false;
35 bool barberPoleStolenShown = false;
36 bool dinerBurnedShown = false;
37 bool burnedTvStationShown = false;
38 bool karinKidnapedShown = false;
39 };
40
41 void resetState() override { _state = ParsonsRoomDialogueState(); }
42 void syncState(Common::Serializer &s) override {
43 syncDialogueBool(s, _state.introPending);
44 syncDialogueBool(s, _state.stephMidgameShown);
45 syncDialogueBool(s, _state.scratchedTuckerShown);
46 syncDialogueBool(s, _state.barberPoleStolenShown);
47 syncDialogueBool(s, _state.dinerBurnedShown);
48 syncDialogueBool(s, _state.burnedTvStationShown);
49 syncDialogueBool(s, _state.karinKidnapedShown);
50 }
51 Common::Error handleDialogue(DialogueRuntime &runtime,
52 const Common::String &usedItemName, DialogueSharedState &sharedState) override;
53
54private:
55 ParsonsRoomDialogueState _state;
56};
57
58} // End of namespace Harvester
59
60#endif // HARVESTER_NPC_PARSONS_DIALOGUE_H
Definition: error.h:81
Definition: serializer.h:80
Definition: str.h:59
Definition: dialogue_handler.h:99
Definition: parsons_dialogue.h:29