ScummVM API documentation
dialogs_message.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 XEEN_dialogs_message_H
23 #define XEEN_dialogs_message_H
24 
25 #include "mm/xeen/dialogs/dialogs.h"
26 #include "mm/xeen/character.h"
27 
28 namespace MM {
29 namespace Xeen {
30 
31 enum MessageWaitType { WT_FREEZE_WAIT = 0, WT_NONFREEZED_WAIT = 1,
32  WT_LOC_WAIT = 2, WT_ANIMATED_WAIT = 3 };
33 
35 private:
37 
38  void execute(const Common::String &msg, MessageWaitType waitType);
39 public:
40  static void show(XeenEngine *vm, const Common::String &msg,
41  MessageWaitType waitType = WT_FREEZE_WAIT);
42 };
43 
44 class ErrorScroll {
45 public:
46  static void show(XeenEngine *vm, const Common::String &msg,
47  MessageWaitType waitType = WT_FREEZE_WAIT);
48 };
49 
50 class CantCast: public ButtonContainer {
51 private:
53 
54  void execute(int spellId, int componentNum);
55 public:
56  static void show(XeenEngine *vm, int spellId, int componentNum);
57 };
58 
59 } // End of namespace Xeen
60 } // End of namespace MM
61 
62 #endif
Definition: str.h:59
Definition: dialogs_message.h:50
Definition: dialogs_message.h:34
Definition: dialogs_message.h:44
Definition: xeen.h:93
Definition: detection.h:27
Definition: dialogs.h:74