ScummVM API documentation
dialogs.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 HOPKINS_DIALOGS_H
23 #define HOPKINS_DIALOGS_H
24 
25 #include "common/scummsys.h"
26 #include "common/system.h"
27 #include "common/error.h"
28 #include "common/rect.h"
29 
30 namespace Hopkins {
31 
32 class HopkinsEngine;
33 
34 enum SaveLoadMode { MODE_SAVE = 1, MODE_LOAD = 2 };
35 
40 private:
41  byte *_inventWin1;
42  byte *_inventBuf2;
43  byte *_inventoryIcons;
44  bool _inventDisplayedFl;
45  bool _removeInventFl;
46  int _inventX, _inventY;
47  int _inventWidth, _inventHeight;
48  int _oldInventX;
49 
50  HopkinsEngine *_vm;
51 
52  void showSaveLoad(SaveLoadMode mode);
53  int searchSavegames();
54 public:
55  bool _inventFl;
56 
58  ~DialogsManager();
59  void inventAnim();
60  void showInventory();
61  void showLoadGame();
62  void showSaveGame();
63  void showOptionsDialog();
64  void testDialogOpening();
65  void clearAll();
66 
67  void drawInvent(Common::Point oldBorder, int oldBorderSpriteIndex, Common::Point newBorder, int newBorderSpriteIndex);
68  void loadIcons();
69 
70  void disableInvent() { _removeInventFl = true; }
71  void enableInvent() { _removeInventFl = false; }
72 };
73 
74 } // End of namespace Hopkins
75 
76 #endif /* HOPKINS_MENU_H */
Definition: dialogs.h:39
Definition: rect.h:45
Definition: anim.h:30
Definition: hopkins.h:86