ScummVM API documentation
pet_gfx_element.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_GFX_ELEMENT_H
23 #define TITANIC_PET_GFX_ELEMENT_H
24 
25 #include "titanic/pet_control/pet_element.h"
26 
27 namespace Titanic {
28 
29 class CPetGfxElement: public CPetElement {
30 public:
31  CGameObject *_object0;
32  CGameObject *_object1;
33  CGameObject *_object2;
34 public:
35  CPetGfxElement() : CPetElement(), _object0(nullptr), _object1(nullptr),
36  _object2(nullptr) {}
37 
41  void setup(PetElementMode mode, const CString &name,
42  CPetControl *petControl) override;
43 
47  void reset(const CString &name, CPetControl *petControl,
48  PetElementMode mode = MODE_UNSELECTED) override;
49 
53  void draw(CScreenManager *screenManager) override;
54 
58  void draw(CScreenManager *screenManager, const Common::Point &destPos) override;
59 
63  Rect getBounds() const override;
64 
68  CGameObject *getObject() const override;
69 
74  const Rect &getRawBounds() const { return _bounds; }
75 };
76 
77 } // End of namespace Titanic
78 
79 #endif /* TITANIC_PET_GFX_ELEMENT_H */
Definition: screen_manager.h:49
Definition: pet_gfx_element.h:29
Definition: game_object.h:79
const Rect & getRawBounds() const
Definition: pet_gfx_element.h:74
Definition: pet_val_base.h:27
Definition: rect.h:35
Definition: rect.h:45
Definition: arm.h:30
Definition: string.h:40
void draw(CScreenManager *screenManager) override
void reset(const CString &name, CPetControl *petControl, PetElementMode mode=MODE_UNSELECTED) override
CGameObject * getObject() const override
Rect getBounds() const override
void setup(PetElementMode mode, const CString &name, CPetControl *petControl) override
Definition: pet_control.h:45