ScummVM API documentation
pet_frame.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef TITANIC_PET_FRAME_H
23 #define TITANIC_PET_FRAME_H
24 
25 #include "titanic/pet_control/pet_section.h"
26 #include "titanic/pet_control/pet_gfx_element.h"
27 
28 namespace Titanic {
29 
34 class CPetFrame : public CPetSection {
35 private:
36  Common::Array<PetArea> _petAreas;
37  Common::Array<CPetGfxElement> _modeButtons;
38  CPetGfxElement _titles[7];
39  CPetGfxElement _modeBackground;
40  CPetGfxElement _val2;
41  CPetGfxElement _val3;
42  CPetGfxElement _background;
43  CPetGfxElement _squares[7];
44 private:
48  bool setPetControl(CPetControl *petControl);
49 public:
50  CPetFrame();
51 
55  bool setup(CPetControl *petControl) override;
56 
60  bool reset() override;
61 
65  bool MouseButtonDownMsg(CMouseButtonDownMsg *msg) override;
66  bool MouseButtonUpMsg(CMouseButtonUpMsg *msg) override { return false; }
67 
71  bool isValid(CPetControl *petControl) override;
72 
76  void postLoad() override;
77 
81  void setArea(PetArea newArea);
82 
86  void resetArea();
87 
91  void drawFrame(CScreenManager *screenManager);
92 
96  void drawSquares(CScreenManager *screenManager, int count);
97 };
98 
99 } // End of namespace Titanic
100 
101 #endif /* TITANIC_PET_FRAME_H */
void drawSquares(CScreenManager *screenManager, int count)
bool setup(CPetControl *petControl) override
void setArea(PetArea newArea)
Definition: pet_section.h:51
bool reset() override
void postLoad() override
bool MouseButtonDownMsg(CMouseButtonDownMsg *msg) override
bool isValid(CPetControl *petControl) override
Definition: screen_manager.h:49
Definition: pet_gfx_element.h:29
Definition: arm.h:30
Definition: mouse_messages.h:87
Definition: mouse_messages.h:71
void drawFrame(CScreenManager *screenManager)
Definition: pet_frame.h:34
Definition: pet_control.h:45