diff options
author | Paul Gilbert | 2016-07-29 22:27:07 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-29 22:27:07 -0400 |
commit | 6aef21517f5f65f6421103e1b2d150f44a6f17c6 (patch) | |
tree | 7272112ca45d5dfc55abc9a79248d28fdde9be7f /engines/titanic | |
parent | 4df8e58cf39615398bf484e1eda34a7e9c507acb (diff) | |
download | scummvm-rg350-6aef21517f5f65f6421103e1b2d150f44a6f17c6.tar.gz scummvm-rg350-6aef21517f5f65f6421103e1b2d150f44a6f17c6.tar.bz2 scummvm-rg350-6aef21517f5f65f6421103e1b2d150f44a6f17c6.zip |
TITANIC: Rename NPC scripts proc25 to doSentenceEntry
Diffstat (limited to 'engines/titanic')
-rw-r--r-- | engines/titanic/true_talk/barbot_script.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/barbot_script.h | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/bellbot_script.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/bellbot_script.h | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/deskbot_script.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/deskbot_script.h | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/doorbot_script.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/doorbot_script.h | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/liftbot_script.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/liftbot_script.h | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/maitred_script.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/maitred_script.h | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/parrot_script.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/parrot_script.h | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/succubus_script.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/succubus_script.h | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/tt_npc_script.cpp | 4 | ||||
-rw-r--r-- | engines/titanic/true_talk/tt_npc_script.h | 2 |
18 files changed, 19 insertions, 19 deletions
diff --git a/engines/titanic/true_talk/barbot_script.cpp b/engines/titanic/true_talk/barbot_script.cpp index 1ea2cae9bc..fbda55425c 100644 --- a/engines/titanic/true_talk/barbot_script.cpp +++ b/engines/titanic/true_talk/barbot_script.cpp @@ -1015,7 +1015,7 @@ uint BarbotScript::getDialsBitset() const { return bits; } -int BarbotScript::proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { +int BarbotScript::doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { int v34 = getState(); uint id = 0; diff --git a/engines/titanic/true_talk/barbot_script.h b/engines/titanic/true_talk/barbot_script.h index d1da7e1923..d7fb1906f6 100644 --- a/engines/titanic/true_talk/barbot_script.h +++ b/engines/titanic/true_talk/barbot_script.h @@ -90,7 +90,7 @@ public: */ virtual uint getDialsBitset() const; - virtual int proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); + virtual int doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); /** * Sets a given dial to be pointing in a specified region (0 to 2) diff --git a/engines/titanic/true_talk/bellbot_script.cpp b/engines/titanic/true_talk/bellbot_script.cpp index ee964cbf25..d3fa24bcb4 100644 --- a/engines/titanic/true_talk/bellbot_script.cpp +++ b/engines/titanic/true_talk/bellbot_script.cpp @@ -323,7 +323,7 @@ int BellbotScript::proc23() const { return 0; } -int BellbotScript::proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { +int BellbotScript::doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { switch (val1) { case 1: addResponse(getDialogueId(*srcIdP)); diff --git a/engines/titanic/true_talk/bellbot_script.h b/engines/titanic/true_talk/bellbot_script.h index fc88f62798..ace2862ac1 100644 --- a/engines/titanic/true_talk/bellbot_script.h +++ b/engines/titanic/true_talk/bellbot_script.h @@ -88,7 +88,7 @@ public: virtual int proc23() const; - virtual int proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); + virtual int doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); virtual int proc36(int val) const; }; diff --git a/engines/titanic/true_talk/deskbot_script.cpp b/engines/titanic/true_talk/deskbot_script.cpp index 5b4eec13cd..88bf1112d1 100644 --- a/engines/titanic/true_talk/deskbot_script.cpp +++ b/engines/titanic/true_talk/deskbot_script.cpp @@ -267,7 +267,7 @@ int DeskbotScript::proc23() const { return 0; } -int DeskbotScript::proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { +int DeskbotScript::doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { uint id; switch (val1) { diff --git a/engines/titanic/true_talk/deskbot_script.h b/engines/titanic/true_talk/deskbot_script.h index 2e814eed3b..2991e06636 100644 --- a/engines/titanic/true_talk/deskbot_script.h +++ b/engines/titanic/true_talk/deskbot_script.h @@ -90,7 +90,7 @@ public: virtual int preResponse(uint id); virtual int proc23() const; - virtual int proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); + virtual int doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); virtual int proc36(int val) const; /** diff --git a/engines/titanic/true_talk/doorbot_script.cpp b/engines/titanic/true_talk/doorbot_script.cpp index 050a5440a7..8b837341b3 100644 --- a/engines/titanic/true_talk/doorbot_script.cpp +++ b/engines/titanic/true_talk/doorbot_script.cpp @@ -340,7 +340,7 @@ uint DoorbotScript::getDialsBitset() const { return bits; } -int DoorbotScript::proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { +int DoorbotScript::doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { int id2, id = 0; switch (val1) { diff --git a/engines/titanic/true_talk/doorbot_script.h b/engines/titanic/true_talk/doorbot_script.h index 11d4dd3190..5f740dba17 100644 --- a/engines/titanic/true_talk/doorbot_script.h +++ b/engines/titanic/true_talk/doorbot_script.h @@ -88,7 +88,7 @@ public: */ virtual uint getDialsBitset() const; - virtual int proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); + virtual int doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); /** * Sets a given dial to be pointing in a specified region (0 to 2) diff --git a/engines/titanic/true_talk/liftbot_script.cpp b/engines/titanic/true_talk/liftbot_script.cpp index 7afd2c47ac..397338a1ab 100644 --- a/engines/titanic/true_talk/liftbot_script.cpp +++ b/engines/titanic/true_talk/liftbot_script.cpp @@ -247,7 +247,7 @@ uint LiftbotScript::getDialsBitset() const { } -int LiftbotScript::proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { +int LiftbotScript::doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { static const int ARRAY13[] = { 210724, 210735, 210746, 210757, 210758, 210759, 210760, 210761, 210762, 210725, 210726, 210727, 210728, 210729, diff --git a/engines/titanic/true_talk/liftbot_script.h b/engines/titanic/true_talk/liftbot_script.h index 968e80dcf5..04d4b024b3 100644 --- a/engines/titanic/true_talk/liftbot_script.h +++ b/engines/titanic/true_talk/liftbot_script.h @@ -85,7 +85,7 @@ public: */ virtual uint getDialsBitset() const; - virtual int proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); + virtual int doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); /** * Sets a given dial to be pointing in a specified region (0 to 2) diff --git a/engines/titanic/true_talk/maitred_script.cpp b/engines/titanic/true_talk/maitred_script.cpp index 0ef94e0910..08e8119b00 100644 --- a/engines/titanic/true_talk/maitred_script.cpp +++ b/engines/titanic/true_talk/maitred_script.cpp @@ -306,7 +306,7 @@ int MaitreDScript::proc23() const { return 0; } -int MaitreDScript::proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { +int MaitreDScript::doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { warning("TODO"); return 0; } diff --git a/engines/titanic/true_talk/maitred_script.h b/engines/titanic/true_talk/maitred_script.h index 3cb2b5ab67..5d26bec5a2 100644 --- a/engines/titanic/true_talk/maitred_script.h +++ b/engines/titanic/true_talk/maitred_script.h @@ -89,7 +89,7 @@ public: virtual int preResponse(uint id); virtual int proc23() const; - virtual int proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); + virtual int doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); }; } // End of namespace Titanic diff --git a/engines/titanic/true_talk/parrot_script.cpp b/engines/titanic/true_talk/parrot_script.cpp index c2f08ca37b..5894cd022c 100644 --- a/engines/titanic/true_talk/parrot_script.cpp +++ b/engines/titanic/true_talk/parrot_script.cpp @@ -107,7 +107,7 @@ int ParrotScript::proc23() const { return 0; } -int ParrotScript::proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { +int ParrotScript::doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { return 0; } diff --git a/engines/titanic/true_talk/parrot_script.h b/engines/titanic/true_talk/parrot_script.h index 620e098c0d..f83d1f55a6 100644 --- a/engines/titanic/true_talk/parrot_script.h +++ b/engines/titanic/true_talk/parrot_script.h @@ -53,7 +53,7 @@ public: virtual ScriptChangedResult scriptChanged(TTscriptBase *roomScript, uint id); virtual int proc23() const; - virtual int proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); + virtual int doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); }; } // End of namespace Titanic diff --git a/engines/titanic/true_talk/succubus_script.cpp b/engines/titanic/true_talk/succubus_script.cpp index 1050ba2a6c..2a44043fef 100644 --- a/engines/titanic/true_talk/succubus_script.cpp +++ b/engines/titanic/true_talk/succubus_script.cpp @@ -94,7 +94,7 @@ int SuccUBusScript::proc23() const { return 0; } -int SuccUBusScript::proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { +int SuccUBusScript::doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { warning("TODO"); return 0; } diff --git a/engines/titanic/true_talk/succubus_script.h b/engines/titanic/true_talk/succubus_script.h index 7acc27fa0a..6401df08d7 100644 --- a/engines/titanic/true_talk/succubus_script.h +++ b/engines/titanic/true_talk/succubus_script.h @@ -60,7 +60,7 @@ public: virtual int updateState(uint oldId, uint newId, int index); virtual int proc23() const; - virtual int proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); + virtual int doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); }; } // End of namespace Titanic diff --git a/engines/titanic/true_talk/tt_npc_script.cpp b/engines/titanic/true_talk/tt_npc_script.cpp index 7b25c66cc5..3e9af6583e 100644 --- a/engines/titanic/true_talk/tt_npc_script.cpp +++ b/engines/titanic/true_talk/tt_npc_script.cpp @@ -386,7 +386,7 @@ const TTscriptMapping *TTnpcScript::getMapping(int index) { return nullptr; } -int TTnpcScript::proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { +int TTnpcScript::doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence) { return 0; } @@ -722,7 +722,7 @@ int TTnpcScript::processEntries(const TTsentenceEntries *entries, uint entryCoun if (!flag2) { flag = false; } else { - int result = proc25(entry._field2C & 0xFFFFFF, &entry._field0, + int result = doSentenceEntry(entry._field2C & 0xFFFFFF, &entry._field0, roomScript, sentence); if (result == 2) return 2; diff --git a/engines/titanic/true_talk/tt_npc_script.h b/engines/titanic/true_talk/tt_npc_script.h index 735e8b85b4..e758cff737 100644 --- a/engines/titanic/true_talk/tt_npc_script.h +++ b/engines/titanic/true_talk/tt_npc_script.h @@ -272,7 +272,7 @@ public: virtual uint getDialsBitset() const { return 0; } virtual const TTscriptMapping *getMapping(int index); - virtual int proc25(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); + virtual int doSentenceEntry(int val1, const int *srcIdP, TTroomScript *roomScript, TTsentence *sentence); /** * Handles any post-response NPC processing |