diff options
author | Paul Gilbert | 2016-03-30 23:55:15 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-30 23:55:15 -0400 |
commit | c33bdcc09ff9949dec9330fc245bb8f97546875a (patch) | |
tree | c896945a15834c4f68b635878f87ca8264d5fcce /engines/titanic/pet_control/pet_element.h | |
parent | 948fb5bcca3a8d8594fd9e1f5470dac0448f74a9 (diff) | |
download | scummvm-rg350-c33bdcc09ff9949dec9330fc245bb8f97546875a.tar.gz scummvm-rg350-c33bdcc09ff9949dec9330fc245bb8f97546875a.tar.bz2 scummvm-rg350-c33bdcc09ff9949dec9330fc245bb8f97546875a.zip |
TITANIC: Fleshing out CPetFrame
Diffstat (limited to 'engines/titanic/pet_control/pet_element.h')
-rw-r--r-- | engines/titanic/pet_control/pet_element.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/engines/titanic/pet_control/pet_element.h b/engines/titanic/pet_control/pet_element.h index 330fbf21fa..e5ab8d3fdd 100644 --- a/engines/titanic/pet_control/pet_element.h +++ b/engines/titanic/pet_control/pet_element.h @@ -43,12 +43,15 @@ public: virtual ~CPetElement() {} /** - * Load an object into the element + * Sets up the element */ - virtual void loadObject(PetElementMode mode, const CString &name, + virtual void setup(PetElementMode mode, const CString &name, CPetControl *petControl) {} - virtual void proc2() {} + /** + * Sets up the element + */ + virtual void setup() {} /** * Draw the item @@ -107,6 +110,16 @@ public: virtual void changeMode(PetElementMode newMode) { _mode = newMode; } void setMode(PetElementMode mode); + + /** + * Set the bounds for the element + */ + void setBounds(const Rect &r) { _bounds = r; } + + /** + * Translate the position of the element + */ + void translate(int deltaX, int deltaY) { _bounds.translate(deltaX, deltaY); } }; } // End of namespace Titanic |