OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4GameDialogs.h
Go to the documentation of this file.
1 /*
2  * OpenClonk, http://www.openclonk.org
3  *
4  * Copyright (c) 2005-2009, RedWolf Design GmbH, http://www.clonk.de/
5  * Copyright (c) 2009-2016, The OpenClonk Team and contributors
6  *
7  * Distributed under the terms of the ISC license; see accompanying file
8  * "COPYING" for details.
9  *
10  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
11  * See accompanying file "TRADEMARK" for details.
12  *
13  * To redistribute this file separately, substitute the full license texts
14  * for the above references.
15  */
16 // main game dialogs (abort game dlg, observer dlg)
17 
18 #ifndef INC_C4GameDialogs
19 #define INC_C4GameDialogs
20 
21 #include "gui/C4Gui.h"
22 
24 {
25 public:
27  ~C4AbortGameDialog() override;
28 
29 protected:
30  static bool is_shown;
31 
32  // callbacks to halt game
33  void OnShown() override; // inc game halt counter
34  void OnClosed(bool fOK) override; // dec game halt counter
35 
36  const char *GetID() override { return "AbortGameDialog"; }
37 
38  // align by screen, not viewport
39  bool IsFreePlaceDialog() override { return true; }
40 
41  // true for dialogs that receive full keyboard and mouse input even in shared mode
42  bool IsExclusiveDialog() override { return true; }
43 
44  bool fGameHalted{false};
45 
46 public:
47  static bool IsShown() { return is_shown; }
48 
49 };
50 
51 #endif // INC_C4GameDialogs
~C4AbortGameDialog() override
bool IsExclusiveDialog() override
Definition: C4GameDialogs.h:42
void OnShown() override
bool fOK
Definition: C4Gui.h:2082
static bool is_shown
Definition: C4GameDialogs.h:30
const char * GetID() override
Definition: C4GameDialogs.h:36
bool IsFreePlaceDialog() override
Definition: C4GameDialogs.h:39
void OnClosed(bool fOK) override
static bool IsShown()
Definition: C4GameDialogs.h:47