ScummVM API documentation
inventory.h
1 
2 /* ScummVM - Graphic Adventure Engine
3  *
4  * ScummVM is the legal property of its developers, whose names
5  * are too numerous to list here. Please refer to the COPYRIGHT
6  * file distributed with this source distribution.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef M4_BURGER_INVENTORY_H
24 #define M4_BURGER_INVENTORY_H
25 
26 #include "common/array.h"
27 #include "m4/m4_types.h"
28 #include "m4/adv_r/adv_inv.h"
29 
30 namespace M4 {
31 namespace Burger {
32 
33 struct InventoryItem {
34  const char *_asset = nullptr;
35  const char *_name = nullptr;
36  int _scene = 0;
37 
38  InventoryItem() {}
39  InventoryItem(const char *name, int scene) : _asset(name), _name(name), _scene(scene) {}
40 };
41 
42 struct Inventory : public InventoryBase {
43 public:
45 public:
46  void init();
47  virtual ~Inventory() {}
48 
49  void add(const Common::String &name, const Common::String &verbs, int32 sprite, int32 cursor) override;
50  void set_scroll(int32 scroll) override;
51  void remove(const Common::String &name) override;
52  void reset();
53 };
54 
55 } // namespace Burger
56 } // namespace M4
57 
58 #endif
Definition: str.h:59
Definition: inventory.h:33
Definition: database.h:28
Definition: inventory.h:42
Definition: adv_inv.h:38