ScummVM API documentation
maitred_script.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 TITANIC_MAITRED_SCRIPT_H
23 #define TITANIC_MAITRED_SCRIPT_H
24 
25 #include "titanic/true_talk/tt_npc_script.h"
26 
27 namespace Titanic {
28 
29 class MaitreDScript : public TTnpcScript {
30 private:
31  TTmapEntryArray _states;
32  TTsentenceEntries _sentences1;
33  int _answerCtr;
34 private:
38  void setupSentences();
39 
43  uint getStateDialogueId(uint oldId, uint newId);
44 
48  void startFighting();
49 
53  void stopFighting(bool flag);
54 
59  void setFlags10(uint newId, uint index);
60 
64  int preprocess(const TTroomScript *roomScript, const TTsentence *sentence);
65 public:
66  MaitreDScript(int val1, const char *charClass, int v2,
67  const char *charName, int v3, int val2);
68 
72  int chooseResponse(const TTroomScript *roomScript, const TTsentence *sentence, uint tag) override;
73 
77  int process(const TTroomScript *roomScript, const TTsentence *sentence) override;
78 
82  ScriptChangedResult scriptChanged(const TTroomScript *roomScript, uint id) override;
83 
84  int handleQuote(const TTroomScript *roomScript, const TTsentence *sentence,
85  uint tag1, uint tag2, uint remainder) override;
86 
90  int updateState(uint oldId, uint newId, int index) override;
91 
95  int preResponse(uint id) override;
96 };
97 
98 } // End of namespace Titanic
99 
100 #endif /* TITANIC_MAITRED_SCRIPT_H */
int updateState(uint oldId, uint newId, int index) override
ScriptChangedResult scriptChanged(const TTroomScript *roomScript, uint id) override
Definition: script_support.h:159
Definition: tt_room_script.h:61
Definition: script_support.h:90
int process(const TTroomScript *roomScript, const TTsentence *sentence) override
Definition: tt_sentence.h:49
int chooseResponse(const TTroomScript *roomScript, const TTsentence *sentence, uint tag) override
Definition: tt_npc_script.h:88
Definition: arm.h:30
int preResponse(uint id) override
Definition: maitred_script.h:29