ScummVM API documentation
gui_eob_segacd.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#ifdef ENABLE_EOB
23
24#ifndef KYRA_GUI_EOB_SEGACD_H
25#define KYRA_GUI_EOB_SEGACD_H
26
27#include "kyra/gui/gui_eob.h"
28
29#ifdef ENABLE_EOB
30
31namespace Kyra {
32
33class GUI_EoB_SegaCD : public GUI_EoB {
34public:
35 GUI_EoB_SegaCD(EoBEngine *vm);
36 ~GUI_EoB_SegaCD() override;
37
38protected:
39 int mapPointToEntry(const Common::Point &p) const override;
40
41private:
42 void drawCampMenu() override;
43 void initMemorizePrayMenu(int spellType) override;
44 void initScribeScrollMenu() override;
45 void printScribeScrollSpellString(const int16 *menuItems, int id, bool highlight) override;
46 void drawSaveSlotDialog(int x, int y, int id) override;
47 bool confirmDialogue(int id) override;
48 void displayTextBox(int id, int textColor, bool wait) override;
49 void drawMenuButton(Button *b, bool clicked, bool highlight, bool noFill) override;
50 void drawSaveSlotButton(int slot, int redrawBox, bool highlight) override;
51 int getHighlightSlot() override;
52 void memorizePrayMenuPrintString(int spellId, int bookPageIndex, int spellType, bool noFill, bool highLight) override;
53 void updateOptionsStrings() override;
54 void restParty_updateRestTime(int hours, bool init) override;
55
56 uint16 checkClickableCharactersSelection() override;
57 void printClickableCharacters(int page) override;
58 void printClickableCharacter(int id, int col);
59 char fetchClickableCharacter(int id) const;
60
61 const int _clickableCharactersNumPages;
62 const uint8 *_campMenu;
63 Button* _saveLoadCancelButton;
64 EoBEngine *_vm;
65
66 struct MenuButtonTiles {
67 uint16 nameTbl;
68 uint16 srcOffs;
69 };
70
71 static const MenuButtonTiles _menuButtonTiles[40];
72};
73
74} // End of namespace Kyra
75
76#endif // ENABLE_EOB
77
78#endif
79
80#endif // ENABLE_EOB || ENABLE_LOL
Definition: input.h:69
Definition: detection.h:27
Definition: rect.h:144