aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_rooms_glyphs.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-23 23:30:17 -0400
committerPaul Gilbert2016-07-10 16:11:57 -0400
commit4180e85bc0da500c347a3c5076ec7e6921e8daff (patch)
tree4a690e74f1d04daf5a6a811fe79f691b11ff8014 /engines/titanic/pet_control/pet_rooms_glyphs.cpp
parent73258800cf10f94cee5a9745649f8c5dbb67109c (diff)
downloadscummvm-rg350-4180e85bc0da500c347a3c5076ec7e6921e8daff.tar.gz
scummvm-rg350-4180e85bc0da500c347a3c5076ec7e6921e8daff.tar.bz2
scummvm-rg350-4180e85bc0da500c347a3c5076ec7e6921e8daff.zip
TITANIC: Beginnings of PET Rooms glyph
Diffstat (limited to 'engines/titanic/pet_control/pet_rooms_glyphs.cpp')
-rw-r--r--engines/titanic/pet_control/pet_rooms_glyphs.cpp51
1 files changed, 48 insertions, 3 deletions
diff --git a/engines/titanic/pet_control/pet_rooms_glyphs.cpp b/engines/titanic/pet_control/pet_rooms_glyphs.cpp
index c853273873..6c032e7daf 100644
--- a/engines/titanic/pet_control/pet_rooms_glyphs.cpp
+++ b/engines/titanic/pet_control/pet_rooms_glyphs.cpp
@@ -21,13 +21,15 @@
*/
#include "titanic/pet_control/pet_rooms_glyphs.h"
+#include "titanic/pet_control/pet_section.h"
+#include "titanic/support/screen_manager.h"
namespace Titanic {
CPetRoomsGlyph::CPetRoomsGlyph() : CPetGlyph(),
- _field34(0), _field38(0), _field3C(0), _field40(0),
- _field44(0), _field48(0), _field4C(0), _field50(0),
- _field54(0), _field58(0), _field5C(0) {
+ _field34(0), _field38(0), _field3C(0),
+ _field40(nullptr), _field44(nullptr), _field48(nullptr), _field4C(nullptr),
+ _field50(nullptr), _field54(nullptr), _field58(nullptr), _field5C(nullptr) {
}
void CPetRoomsGlyph::set34(int val) {
@@ -38,4 +40,47 @@ void CPetRoomsGlyph::set38(int val) {
_field38 = val;
}
+bool CPetRoomsGlyph::setup(CPetControl *petControl, CPetGlyphs *owner) {
+ if (!CPetGlyph::setup(petControl, owner))
+ return false;
+
+ CPetSection *section = owner->getOwner();
+ _field40 = section->getBackground(9);
+ _field44 = section->getBackground(12);
+ _field50 = section->getBackground(13);
+ _field54 = section->getBackground(10);
+ _field48 = section->getBackground(11);
+ _field4C = section->getBackground(14);
+ _field58 = section->getBackground(15);
+ _field5C = _field58;
+ return true;
+}
+
+void CPetRoomsGlyph::drawAt(CScreenManager *screenManager, const Point &pt) {
+ // Clear background
+ Rect rect(pt.x, pt.y, pt.x + 52, pt.y + 52);
+ screenManager->fillRect(SURFACE_BACKBUFFER, &rect, 0, 0, 0);
+
+ warning("TODO: CPetRoomsGlyph::drawAt");
+}
+
+void CPetRoomsGlyph::proc28(const Point &pt) {
+
+}
+int CPetRoomsGlyph::proc29(const Point &pt) {
+ return 0;
+}
+
+void CPetRoomsGlyph::proc32() {
+
+}
+
+int CPetRoomsGlyph::proc33() {
+ return 1;
+}
+
+void CPetRoomsGlyph::proc39() {
+
+}
+
} // End of namespace Titanic