ScummVM API documentation
riven_inventory.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 RIVEN_INVENTORY_H
23 #define RIVEN_INVENTORY_H
24 
25 #include "common/rect.h"
26 
27 namespace Mohawk {
28 
29 class MohawkEngine_Riven;
30 
37 public:
38  explicit RivenInventory(MohawkEngine_Riven *vm);
39  virtual ~RivenInventory();
40 
42  void checkClick(const Common::Point &mousePos);
43 
45  void backFromItemScript() const;
46 
48  void onFrame();
49 
51  void forceVisible(bool visible);
52 
54  void forceHidden(bool hidden);
55 
56 private:
57  bool isVisible() const;
58  void draw();
59  void clearArea();
60 
61  MohawkEngine_Riven *_vm;
62 
63  bool _inventoryDrawn;
64  bool _forceVisible;
65  bool _forceHidden;
66 
67  // Rects for the inventory object positions
68  Common::Rect _atrusJournalRect1;
69  Common::Rect _atrusJournalRect2;
70  Common::Rect _cathJournalRect2;
71  Common::Rect _atrusJournalRect3;
72  Common::Rect _cathJournalRect3;
73  Common::Rect _trapBookRect3;
74  Common::Rect _demoExitRect;
75 };
76 
77 } // End of namespace Mohawk
78 
79 #endif
void forceHidden(bool hidden)
Definition: rect.h:144
Definition: riven.h:91
void forceVisible(bool visible)
Definition: rect.h:45
void backFromItemScript() const
Definition: riven_inventory.h:36
void checkClick(const Common::Point &mousePos)
Definition: bitmap.h:32