aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-31 07:58:41 -0400
committerPaul Gilbert2016-03-31 07:58:41 -0400
commit39ef1e3edb03d0ea6ae47649951c308b646992ad (patch)
tree1edb6b53b3c121d71006ec9d1a60f1e920b2e264 /engines/titanic
parentc33bdcc09ff9949dec9330fc245bb8f97546875a (diff)
downloadscummvm-rg350-39ef1e3edb03d0ea6ae47649951c308b646992ad.tar.gz
scummvm-rg350-39ef1e3edb03d0ea6ae47649951c308b646992ad.tar.bz2
scummvm-rg350-39ef1e3edb03d0ea6ae47649951c308b646992ad.zip
TITANIC: Renamed CPetVal to CPetGraphic
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/module.mk2
-rw-r--r--engines/titanic/pet_control/pet_control_list_item.h4
-rw-r--r--engines/titanic/pet_control/pet_control_sub10.h6
-rw-r--r--engines/titanic/pet_control/pet_control_sub5.h12
-rw-r--r--engines/titanic/pet_control/pet_conversation_section.h24
-rw-r--r--engines/titanic/pet_control/pet_frame.h16
-rw-r--r--engines/titanic/pet_control/pet_graphic.cpp (renamed from engines/titanic/pet_control/pet_val.cpp)14
-rw-r--r--engines/titanic/pet_control/pet_graphic.h (renamed from engines/titanic/pet_control/pet_val.h)10
-rw-r--r--engines/titanic/pet_control/pet_remote_section.h24
-rw-r--r--engines/titanic/pet_control/pet_rooms_section.h2
10 files changed, 57 insertions, 57 deletions
diff --git a/engines/titanic/module.mk b/engines/titanic/module.mk
index cc3c186288..4eebf04aaf 100644
--- a/engines/titanic/module.mk
+++ b/engines/titanic/module.mk
@@ -385,6 +385,7 @@ MODULE_OBJS := \
pet_control/pet_conversation_section.o \
pet_control/pet_element.o \
pet_control/pet_frame.o \
+ pet_control/pet_graphic.o \
pet_control/pet_inventory_section.o \
pet_control/pet_rooms_section.o \
pet_control/pet_remote_section.o \
@@ -395,7 +396,6 @@ MODULE_OBJS := \
pet_control/pet_control_sub10.o \
pet_control/pet_control_sub11.o \
pet_control/pet_control_sub12.o \
- pet_control/pet_val.o \
sound/auto_music_player.o \
sound/auto_music_player_base.o \
sound/auto_sound_player.o \
diff --git a/engines/titanic/pet_control/pet_control_list_item.h b/engines/titanic/pet_control/pet_control_list_item.h
index 64808c0309..e8210714c1 100644
--- a/engines/titanic/pet_control/pet_control_list_item.h
+++ b/engines/titanic/pet_control/pet_control_list_item.h
@@ -24,13 +24,13 @@
#define TITANIC_PET_CONTROL_LIST_ITEM_H
#include "titanic/core/list.h"
-#include "titanic/pet_control/pet_val.h"
+#include "titanic/pet_control/pet_graphic.h"
namespace Titanic {
class CPetControlListItem : public ListItem {
protected:
- CPetVal _val;
+ CPetGraphic _val;
int _field30;
public:
CPetControlListItem() : _field30(0) {}
diff --git a/engines/titanic/pet_control/pet_control_sub10.h b/engines/titanic/pet_control/pet_control_sub10.h
index f8534d7089..a6f863cb15 100644
--- a/engines/titanic/pet_control/pet_control_sub10.h
+++ b/engines/titanic/pet_control/pet_control_sub10.h
@@ -37,9 +37,9 @@ protected:
int _field1C;
int _field20;
int _field24;
- CPetVal _val1;
- CPetVal _val2;
- CPetVal _val3;
+ CPetGraphic _val1;
+ CPetGraphic _val2;
+ CPetGraphic _val3;
public:
CPetControlSub10();
diff --git a/engines/titanic/pet_control/pet_control_sub5.h b/engines/titanic/pet_control/pet_control_sub5.h
index 1da1822a6a..f82a1eb3f1 100644
--- a/engines/titanic/pet_control/pet_control_sub5.h
+++ b/engines/titanic/pet_control/pet_control_sub5.h
@@ -25,20 +25,20 @@
#include "titanic/pet_control/pet_section.h"
#include "titanic/pet_control/pet_control_sub12.h"
-#include "titanic/pet_control/pet_val.h"
+#include "titanic/pet_control/pet_graphic.h"
namespace Titanic {
class CPetControlSub5 : public CPetSection {
private:
- CPetVal _val1;
- CPetVal _val2;
- CPetVal _val3;
- CPetVal _val4;
+ CPetGraphic _val1;
+ CPetGraphic _val2;
+ CPetGraphic _val3;
+ CPetGraphic _val4;
int _field98;
int _field9C;
int _fieldA0;
- CPetVal _valArray1[6];
+ CPetGraphic _valArray1[6];
int _field17C;
int _field18C;
CPetControlSub12 _sub12;
diff --git a/engines/titanic/pet_control/pet_conversation_section.h b/engines/titanic/pet_control/pet_conversation_section.h
index c9f4547a20..15d57e7272 100644
--- a/engines/titanic/pet_control/pet_conversation_section.h
+++ b/engines/titanic/pet_control/pet_conversation_section.h
@@ -25,24 +25,24 @@
#include "titanic/pet_control/pet_section.h"
#include "titanic/pet_control/pet_control_sub12.h"
-#include "titanic/pet_control/pet_val.h"
+#include "titanic/pet_control/pet_graphic.h"
namespace Titanic {
class CPetConversationSection : public CPetSection {
private:
- CPetVal _val1;
- CPetVal _val2;
- CPetVal _val3;
- CPetVal _valArray1[3];
- CPetVal _val4;
- CPetVal _val5;
- CPetVal _val6;
+ CPetGraphic _val1;
+ CPetGraphic _val2;
+ CPetGraphic _val3;
+ CPetGraphic _valArray1[3];
+ CPetGraphic _val4;
+ CPetGraphic _val5;
+ CPetGraphic _val6;
int _field14C;
- CPetVal _val7;
- CPetVal _val8;
- CPetVal _val9;
- CPetVal _valArray2[9];
+ CPetGraphic _val7;
+ CPetGraphic _val8;
+ CPetGraphic _val9;
+ CPetGraphic _valArray2[9];
int _field30C;
CPetControlSub12 _sub1;
CPetControlSub12 _sub2;
diff --git a/engines/titanic/pet_control/pet_frame.h b/engines/titanic/pet_control/pet_frame.h
index 53adf1ba07..e307a73901 100644
--- a/engines/titanic/pet_control/pet_frame.h
+++ b/engines/titanic/pet_control/pet_frame.h
@@ -24,7 +24,7 @@
#define TITANIC_PET_FRAME_H
#include "titanic/pet_control/pet_section.h"
-#include "titanic/pet_control/pet_val.h"
+#include "titanic/pet_control/pet_graphic.h"
namespace Titanic {
@@ -32,13 +32,13 @@ class CPetFrame : public CPetSection {
private:
static int _indexes[6];
- CPetVal _modeButtons[6];
- CPetVal _titles[6];
- CPetVal _modeBackground;
- CPetVal _val2;
- CPetVal _val3;
- CPetVal _background;
- CPetVal _indent[7];
+ CPetGraphic _modeButtons[6];
+ CPetGraphic _titles[6];
+ CPetGraphic _modeBackground;
+ CPetGraphic _val2;
+ CPetGraphic _val3;
+ CPetGraphic _background;
+ CPetGraphic _indent[7];
private:
/**
* Called to set the owning PET instance and set some initial state
diff --git a/engines/titanic/pet_control/pet_val.cpp b/engines/titanic/pet_control/pet_graphic.cpp
index 096b2846a0..c9fd5f5af1 100644
--- a/engines/titanic/pet_control/pet_val.cpp
+++ b/engines/titanic/pet_control/pet_graphic.cpp
@@ -22,12 +22,12 @@
#include "common/textconsole.h"
#include "titanic/core/game_object.h"
-#include "titanic/pet_control/pet_val.h"
+#include "titanic/pet_control/pet_graphic.h"
#include "titanic/pet_control/pet_control.h"
namespace Titanic {
-void CPetVal::loadObject(PetElementMode mode, const CString &name,
+void CPetGraphic::loadObject(PetElementMode mode, const CString &name,
CPetControl *petControl) {
switch (mode) {
case MODE_0:
@@ -44,15 +44,15 @@ void CPetVal::loadObject(PetElementMode mode, const CString &name,
}
}
-void CPetVal::proc2() {
+void CPetGraphic::proc2() {
error("TODO");
}
-void CPetVal::draw(CScreenManager *screenManager) {
+void CPetGraphic::draw(CScreenManager *screenManager) {
draw(screenManager, Common::Point(_bounds.left, _bounds.top));
}
-void CPetVal::draw(CScreenManager *screenManager, const Common::Point &destPos) {
+void CPetGraphic::draw(CScreenManager *screenManager, const Common::Point &destPos) {
CGameObject *obj = getObject();
if (!obj)
obj = _object0;
@@ -61,7 +61,7 @@ void CPetVal::draw(CScreenManager *screenManager, const Common::Point &destPos)
obj->draw(screenManager, destPos);
}
-void CPetVal::getBounds(Rect *rect) {
+void CPetGraphic::getBounds(Rect *rect) {
if (rect) {
CGameObject *obj = getObject();
if (!obj)
@@ -74,7 +74,7 @@ void CPetVal::getBounds(Rect *rect) {
}
}
-CGameObject *CPetVal::getObject() const {
+CGameObject *CPetGraphic::getObject() const {
switch (_mode) {
case MODE_0:
return _object0;
diff --git a/engines/titanic/pet_control/pet_val.h b/engines/titanic/pet_control/pet_graphic.h
index 90b7a2ec96..8b9c495205 100644
--- a/engines/titanic/pet_control/pet_val.h
+++ b/engines/titanic/pet_control/pet_graphic.h
@@ -20,20 +20,20 @@
*
*/
-#ifndef TITANIC_PET_VAL_H
-#define TITANIC_PET_VAL_H
+#ifndef TITANIC_PET_GRAPHIC_H
+#define TITANIC_PET_GRAPHIC_H
#include "titanic/pet_control/pet_element.h"
namespace Titanic {
-class CPetVal: public CPetElement {
+class CPetGraphic: public CPetElement {
protected:
CGameObject *_object0;
CGameObject *_object1;
CGameObject *_object2;
public:
- CPetVal() : CPetElement(), _object0(nullptr), _object1(nullptr),
+ CPetGraphic() : CPetElement(), _object0(nullptr), _object1(nullptr),
_object2(nullptr) {}
/**
@@ -67,4 +67,4 @@ public:
} // End of namespace Titanic
-#endif /* TITANIC_PET_VAL_H */
+#endif /* TITANIC_PET_GRAPHIC_H */
diff --git a/engines/titanic/pet_control/pet_remote_section.h b/engines/titanic/pet_control/pet_remote_section.h
index e3b543c3fa..6a3d1cd429 100644
--- a/engines/titanic/pet_control/pet_remote_section.h
+++ b/engines/titanic/pet_control/pet_remote_section.h
@@ -26,24 +26,24 @@
#include "titanic/pet_control/pet_section.h"
#include "titanic/pet_control/pet_control_sub10.h"
#include "titanic/pet_control/pet_control_sub12.h"
-#include "titanic/pet_control/pet_val.h"
+#include "titanic/pet_control/pet_graphic.h"
namespace Titanic {
class CPetRemoteSection : public CPetSection {
private:
CPetControlSub10 _sub10;
- CPetVal _val1;
- CPetVal _val2;
- CPetVal _val3;
- CPetVal _val4;
- CPetVal _val5;
- CPetVal _val6;
- CPetVal _val7;
- CPetVal _val8;
- CPetVal _val9;
- CPetVal _val10;
- CPetVal _val11;
+ CPetGraphic _val1;
+ CPetGraphic _val2;
+ CPetGraphic _val3;
+ CPetGraphic _val4;
+ CPetGraphic _val5;
+ CPetGraphic _val6;
+ CPetGraphic _val7;
+ CPetGraphic _val8;
+ CPetGraphic _val9;
+ CPetGraphic _val10;
+ CPetGraphic _val11;
CPetControlSub12 _sub12;
public:
diff --git a/engines/titanic/pet_control/pet_rooms_section.h b/engines/titanic/pet_control/pet_rooms_section.h
index 54996fa950..fc26c340cf 100644
--- a/engines/titanic/pet_control/pet_rooms_section.h
+++ b/engines/titanic/pet_control/pet_rooms_section.h
@@ -42,7 +42,7 @@ private:
int _field114;
int _field118;
int _field11C;
- CPetVal _val1;
+ CPetGraphic _val1;
CPetControlSub12 _sub12;
int _field1C0;
int _field1C4;