ScummVM API documentation
stephanie_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_STEPHANIE_DIALOGUE_H
23#define HARVESTER_NPC_STEPHANIE_DIALOGUE_H
24
25#include "harvester/npc/dialogue_handler.h"
26
27namespace Harvester {
28
30public:
32 bool introPending = true;
33 int introDayIndex = 0;
34 bool firstFollowupPending = true;
35 int firstFollowupDayIndex = 0;
36 bool boltOfClothEscalationTriggered = false;
37 bool playedSpyholeBranch = false;
38 bool secondFollowupPending = true;
39 int secondFollowupDayIndex = 0;
40 bool scratchedTuckerShown = false;
41 bool boltOfClothTakenShown = false;
42 bool barberPoleStolenShown = false;
43 bool burnedTvStationShown = false;
44 bool dinerBurnedShown = false;
45 bool dinerBurnedKarinAliveFollowupShown = false;
46 bool dayFiveLinePlayed = false;
47 bool pcEscapedJailShown = false;
48 bool karinKidnapedLinePlayed = false;
49 bool karinOutcomeLinePlayed = false;
50 Common::String currentTopicBuffer;
51 int currentTopicBufferLineIndex = -1;
52 };
53
54 void resetState() override { _state = StephanieRoomDialogueState(); }
55 void syncState(Common::Serializer &s) override {
56 syncDialogueBool(s, _state.introPending);
57 syncDialogueInt(s, _state.introDayIndex);
58 syncDialogueBool(s, _state.firstFollowupPending);
59 syncDialogueInt(s, _state.firstFollowupDayIndex);
60 syncDialogueBool(s, _state.boltOfClothEscalationTriggered);
61 syncDialogueBool(s, _state.playedSpyholeBranch);
62 syncDialogueBool(s, _state.secondFollowupPending);
63 syncDialogueInt(s, _state.secondFollowupDayIndex);
64 syncDialogueBool(s, _state.scratchedTuckerShown);
65 syncDialogueBool(s, _state.boltOfClothTakenShown);
66 syncDialogueBool(s, _state.barberPoleStolenShown);
67 syncDialogueBool(s, _state.burnedTvStationShown);
68 syncDialogueBool(s, _state.dinerBurnedShown);
69 syncDialogueBool(s, _state.dinerBurnedKarinAliveFollowupShown);
70 syncDialogueBool(s, _state.dayFiveLinePlayed);
71 syncDialogueBool(s, _state.pcEscapedJailShown);
72 syncDialogueBool(s, _state.karinKidnapedLinePlayed);
73 syncDialogueBool(s, _state.karinOutcomeLinePlayed);
74 syncDialogueString(s, _state.currentTopicBuffer);
75 syncDialogueInt(s, _state.currentTopicBufferLineIndex);
76 }
77 Common::Error handleDialogue(DialogueRuntime &runtime,
78 const Common::String &usedItemName, DialogueSharedState &sharedState) override;
79
80private:
81 StephanieRoomDialogueState _state;
82};
83
84} // End of namespace Harvester
85
86#endif // HARVESTER_NPC_STEPHANIE_DIALOGUE_H
Definition: error.h:81
Definition: serializer.h:80
Definition: str.h:59
Definition: dialogue_handler.h:99
Definition: stephanie_dialogue.h:29