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_frame.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_frame.h')
-rw-r--r-- | engines/titanic/pet_control/pet_frame.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_frame.h b/engines/titanic/pet_control/pet_frame.h new file mode 100644 index 0000000000..53adf1ba07 --- /dev/null +++ b/engines/titanic/pet_control/pet_frame.h @@ -0,0 +1,83 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#ifndef TITANIC_PET_FRAME_H +#define TITANIC_PET_FRAME_H + +#include "titanic/pet_control/pet_section.h" +#include "titanic/pet_control/pet_val.h" + +namespace Titanic { + +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]; +private: + /** + * Called to set the owning PET instance and set some initial state + */ + bool setPetControl(CPetControl *petControl); +public: + CPetFrame(); + + /** + * Sets up the section + */ + virtual bool setup(CPetControl *petControl); + + /** + * Sets up the section + */ + virtual bool setup(); + + /** + * Returns true if the object is in a valid state + */ + virtual bool isValid(CPetControl *petControl); + + /** + * Called after a game has been loaded + */ + virtual void postLoad(); + + /** + * Called when the current PET area changes + */ + void setArea(PetArea newArea); + + /** + * Draws the PET frame + */ + void drawFrame(CScreenManager *screenManager); +}; + +} // End of namespace Titanic + +#endif /* TITANIC_PET_FRAME_H */ |