ScummVM API documentation
mom_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_MOM_DIALOGUE_H
23#define HARVESTER_NPC_MOM_DIALOGUE_H
24
25#include "harvester/npc/dialogue_handler.h"
26
27namespace Harvester {
28
30public:
32 bool introPending = true;
33 bool sameDayIntroLineEnabled = false;
34 bool postIntroDefaultLineEnabled = false;
35 int introDayIndex = 0;
36 bool stephMidgameShown = false;
37 bool dinerBurnedKarinMissingOrDeadShown = false;
38 bool burnedTvStationShown = false;
39 bool scratchedTuckerShown = false;
40 bool barberPoleStolenShown = false;
41 bool boltOfClothTakenShown = false;
42 bool dinerBurnedKarinAliveShown = false;
43 bool escapedJailShown = false;
44 bool karinKidnapedUnresolvedShown = false;
45 bool karinFoundAliveShown = false;
46 bool karinFoundDeadShown = false;
47 bool butcherAbsentShown = false;
48 bool moynahanAbsentShown = false;
49 bool waspWomanAbsentShown = false;
50 bool stephanieDeadPreMidgameShown = false;
51 bool day5Shown = false;
52 bool day6Shown = false;
53 };
54
55 void resetState() override { _state = MomRoomDialogueState(); }
56 void syncState(Common::Serializer &s) override {
57 syncDialogueBool(s, _state.introPending);
58 syncDialogueBool(s, _state.sameDayIntroLineEnabled);
59 syncDialogueBool(s, _state.postIntroDefaultLineEnabled);
60 syncDialogueInt(s, _state.introDayIndex);
61 syncDialogueBool(s, _state.stephMidgameShown);
62 syncDialogueBool(s, _state.dinerBurnedKarinMissingOrDeadShown);
63 syncDialogueBool(s, _state.burnedTvStationShown);
64 syncDialogueBool(s, _state.scratchedTuckerShown);
65 syncDialogueBool(s, _state.barberPoleStolenShown);
66 syncDialogueBool(s, _state.boltOfClothTakenShown);
67 syncDialogueBool(s, _state.dinerBurnedKarinAliveShown);
68 syncDialogueBool(s, _state.escapedJailShown);
69 syncDialogueBool(s, _state.karinKidnapedUnresolvedShown);
70 syncDialogueBool(s, _state.karinFoundAliveShown);
71 syncDialogueBool(s, _state.karinFoundDeadShown);
72 syncDialogueBool(s, _state.butcherAbsentShown);
73 syncDialogueBool(s, _state.moynahanAbsentShown);
74 syncDialogueBool(s, _state.waspWomanAbsentShown);
75 syncDialogueBool(s, _state.stephanieDeadPreMidgameShown);
76 syncDialogueBool(s, _state.day5Shown);
77 syncDialogueBool(s, _state.day6Shown);
78 }
79 Common::Error handleDialogue(DialogueRuntime &runtime,
80 const Common::String &usedItemName, DialogueSharedState &sharedState) override;
81
82private:
83 MomRoomDialogueState _state;
84};
85
86} // End of namespace Harvester
87
88#endif // HARVESTER_NPC_MOM_DIALOGUE_H
Definition: error.h:81
Definition: serializer.h:80
Definition: str.h:59
Definition: mom_dialogue.h:29
Definition: dialogue_handler.h:99