aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/dialogs.cpp
diff options
context:
space:
mode:
authorStrangerke2013-10-12 12:36:06 +0200
committerStrangerke2013-10-12 12:36:06 +0200
commit0deb94c1b8a19c790cbdda3790190e7ef25c4dc6 (patch)
tree50193a0d1e487b009ad83e5f8fe813f35a9f69f8 /engines/avalanche/dialogs.cpp
parent46c5bfa50889eacbf88620fbccf5c3b435565875 (diff)
downloadscummvm-rg350-0deb94c1b8a19c790cbdda3790190e7ef25c4dc6.tar.gz
scummvm-rg350-0deb94c1b8a19c790cbdda3790190e7ef25c4dc6.tar.bz2
scummvm-rg350-0deb94c1b8a19c790cbdda3790190e7ef25c4dc6.zip
AVALANCHE: Move some parser functions to Dialogs. Improve some comments
Diffstat (limited to 'engines/avalanche/dialogs.cpp')
-rw-r--r--engines/avalanche/dialogs.cpp32
1 files changed, 31 insertions, 1 deletions
diff --git a/engines/avalanche/dialogs.cpp b/engines/avalanche/dialogs.cpp
index 97c7869804..e9cc1c7f74 100644
--- a/engines/avalanche/dialogs.cpp
+++ b/engines/avalanche/dialogs.cpp
@@ -1151,11 +1151,41 @@ Common::String Dialogs::personSpeaks() {
return tmpStr;
}
-void Dialogs::heyThanks(byte thing) {
+/**
+ * Display a message when (uselessly) giving an object away
+ * @remarks Originally called 'heythanks'
+ */
+void Dialogs::sayThanks(byte thing) {
Common::String tmpStr = personSpeaks();
tmpStr += Common::String::format("Hey, thanks!%c(But now, you've lost it!)", kControlSpeechBubble);
displayText(tmpStr);
_vm->_objects[thing] = false;
}
+/**
+ * Display a 'Hello' message
+ */
+void Dialogs::sayHello() {
+ Common::String tmpStr = personSpeaks();
+ tmpStr += Common::String::format("Hello.%c", kControlSpeechBubble);
+ displayText(tmpStr);
+}
+
+/**
+ * Display a 'OK' message
+ */
+void Dialogs::sayOK() {
+ Common::String tmpStr = personSpeaks();
+ tmpStr += Common::String::format("That's OK.%c", kControlSpeechBubble);
+ displayText(tmpStr);
+}
+
+/**
+ * Display a 'Silly' message
+ * @remarks Originally called 'silly'
+ */
+void Dialogs::saySilly() {
+ displayText("Don't be silly!");
+}
+
} // End of namespace Avalanche