aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_save.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-21 22:13:44 -0400
committerPaul Gilbert2016-07-10 16:11:38 -0400
commitb398a5001bb128c5e53d6ac5426b926de6b73893 (patch)
treeab3fd6f73bf07cf4e2f951ae788fba89f5361730 /engines/titanic/pet_control/pet_save.cpp
parenta8f8e4b69eab768f38d5cd73ceecce03bd096a4d (diff)
downloadscummvm-rg350-b398a5001bb128c5e53d6ac5426b926de6b73893.tar.gz
scummvm-rg350-b398a5001bb128c5e53d6ac5426b926de6b73893.tar.bz2
scummvm-rg350-b398a5001bb128c5e53d6ac5426b926de6b73893.zip
TITANIC: Implementing CPetLoad and CPetSave
Diffstat (limited to 'engines/titanic/pet_control/pet_save.cpp')
-rw-r--r--engines/titanic/pet_control/pet_save.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_save.cpp b/engines/titanic/pet_control/pet_save.cpp
index d8835e1920..a2e458b52a 100644
--- a/engines/titanic/pet_control/pet_save.cpp
+++ b/engines/titanic/pet_control/pet_save.cpp
@@ -21,7 +21,37 @@
*/
#include "titanic/pet_control/pet_save.h"
+#include "titanic/pet_control/pet_control.h"
namespace Titanic {
+bool CPetSave::reset() {
+ CPetLoadSave::reset();
+
+ CPetControl *pet = getPetControl();
+ if (pet) {
+ setName("PetSave", pet);
+ _btnLoadSave.reset("PetSaveOut", pet, MODE_UNSELECTED);
+ _btnLoadSave.reset("PetSaveIn", pet, MODE_SELECTED);
+ }
+
+ return true;
+}
+
+void CPetSave::getTooltip(CPetText *text) {
+ text->setText("Save the game.");
+}
+
+void CPetSave::highlightSave(int index) {
+ warning("TODO: CPetSave::highlightSave");
+}
+
+void CPetSave::unhighlightSave(int index) {
+ warning("TODO: CPetSave::unhighlightSave");
+}
+
+void CPetSave::execute() {
+ warning("TODO: CPetSave::execute");
+}
+
} // End of namespace Titanic