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 /*
23  * This code is based on original Mortville Manor DOS source code
24  * Copyright (c) 1987-1989 Lankhor
25  */
26 
27 #ifndef MORTEVIELLE_ALERT_H
28 #define MORTEVIELLE_ALERT_H
29 
30 #include "common/rect.h"
31 #include "common/str.h"
32 
33 namespace Mortevielle {
34 class MortevielleEngine;
35 
36 static const int NUM_LINES = 7;
37 const int kMaxHotspots = 14;
38 
39 struct Hotspot {
40  Common::Rect _rect;
41  bool _enabled;
42 };
43 
45 private:
46  MortevielleEngine *_vm;
47 
48  void decodeAlertDetails(Common::String inputStr, int &choiceNumb, int &lineNumb, int &col, Common::String &choiceStr, Common::String &choiceListStr);
49  void setPosition(int ji, int coldep, int esp);
50  void drawAlertBox(int firstLine, int lineNum, int width);
51  void setButtonText(Common::String c, int coldep, int nbcase, Common::String *str, int esp);
52 public:
54 
55  int show(const Common::String &msg);
56  void drawF3F8();
57  void checkForF8(int SpeechNum, bool drawFrame2Fl);
58  int waitForF3F8();
59  void displayIntroScreen(bool drawFrame2Fl);
60  void displayIntroFrame2();
61  bool showKnowledgeCheck();
62 };
63 
64 } // End of namespace Mortevielle
65 #endif
Definition: str.h:59
Definition: debugger.h:28
Definition: rect.h:144
Definition: dialogs.h:39
Definition: dialogs.h:44
Definition: mortevielle.h:156