aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-25 22:52:49 -0400
committerPaul Gilbert2016-07-10 16:12:04 -0400
commitb114c768cd592462794d4fa2a397473cf146656c (patch)
treec246544265298a611099716091f7805d2552d355 /engines
parent02bb9510aa3ae99d063e21a6e4c63479b9320d3f (diff)
downloadscummvm-rg350-b114c768cd592462794d4fa2a397473cf146656c.tar.gz
scummvm-rg350-b114c768cd592462794d4fa2a397473cf146656c.tar.bz2
scummvm-rg350-b114c768cd592462794d4fa2a397473cf146656c.zip
TITANIC: Adding more CPetText support methods
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/pet_control/pet_text.cpp7
-rw-r--r--engines/titanic/pet_control/pet_text.h7
2 files changed, 13 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_text.cpp b/engines/titanic/pet_control/pet_text.cpp
index 2e3a184739..7f5a5eaed9 100644
--- a/engines/titanic/pet_control/pet_text.cpp
+++ b/engines/titanic/pet_control/pet_text.cpp
@@ -170,7 +170,7 @@ void CPetText::resize(uint count) {
CString CPetText::getText() const {
CString result = "";
- for (uint idx = 0; idx < _lineCount; ++idx)
+ for (int idx = 0; idx < _lineCount; ++idx)
result += _array[idx]._line;
return result;
@@ -247,4 +247,9 @@ void CPetText::deleteLastChar() {
}
}
+void CPetText::setNPC(int val1, int npcId) {
+ _field64 = val1;
+ _field68 = npcId;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/pet_control/pet_text.h b/engines/titanic/pet_control/pet_text.h
index 73e85401c3..35d48974dd 100644
--- a/engines/titanic/pet_control/pet_text.h
+++ b/engines/titanic/pet_control/pet_text.h
@@ -149,6 +149,13 @@ public:
* Delete the last character from the last line
*/
void deleteLastChar();
+
+ void setNPC(int val1, int npcId);
+
+ /**
+ * Get the font
+ */
+ int getFontNumber() const { return _fontNumber1; }
};
} // End of namespace Titanic