Emergency 20 Dokumentation  4.2.0
EmergencyGui-inl.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Includes ]
6 //[-------------------------------------------------------]
8 
9 
10 //[-------------------------------------------------------]
11 //[ Namespace ]
12 //[-------------------------------------------------------]
13 namespace em5
14 {
15 
16 
17  //[-------------------------------------------------------]
18  //[ Public methods ]
19  //[-------------------------------------------------------]
21  {
22  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
23  QSF_ASSERT(nullptr != mGuiContext, "The GUI context instance is invalid", QSF_REACT_NONE);
24  return *mGuiContext;
25  }
26 
28  {
29  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
30  QSF_ASSERT(nullptr != mStartMenuManager, "The start menu manager instance is invalid", QSF_REACT_NONE);
31  return *mStartMenuManager;
32  }
33 
35  {
36  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
37  QSF_ASSERT(nullptr != mIngameHud, "The in-game HUD instance is invalid", QSF_REACT_NONE);
38  return *mIngameHud;
39  }
40 
42  {
43  return mIngameHud;
44  }
45 
47  {
48  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
49  QSF_ASSERT(nullptr != mPatchUpdateProgressDialog, "The patch update progress dialog instance is invalid", QSF_REACT_NONE);
50  return *mPatchUpdateProgressDialog;
51  }
52 
54  {
55  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
56  QSF_ASSERT(nullptr != mToolTipManager, "The tooltip manager instance is invalid", QSF_REACT_NONE);
57  return *mToolTipManager;
58  }
59 
60 
61 //[-------------------------------------------------------]
62 //[ Namespace ]
63 //[-------------------------------------------------------]
64 } // em5
Definition: ActionPriority.h:13
EMERGENCY 5 start menu manager.
Definition: StartMenuManager.h:46
EMERGENCY 5 in-game HUD.
Definition: IngameHud.h:105
StartMenuManager & getStartMenuManager() const
Return the start menu manager instance.
Definition: EmergencyGui-inl.h:27
ToolTipManager & getToolTipManager() const
Definition: EmergencyGui-inl.h:53
#define QSF_REACT_NONE
Definition: ErrorHandling.h:199
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
Patch update pregress dialog GUI window.
Definition: PatchUpdateProgressDialog.h:47
IngameHud * tryGetIngameHud() const
Definition: EmergencyGui-inl.h:41
#define QSF_ASSERT(condition, explanation, reaction)
Definition: ErrorHandling.h:138
EMERGENCY 5 tooltip manager class.
Definition: ToolTipManager.h:53
PatchUpdateProgressDialog & getPatchUpdateProgressDialog() const
Return the patch update progress dialog.
Definition: EmergencyGui-inl.h:46
qsf::GuiContext & getGuiContext() const
Return the GUI context.
Definition: EmergencyGui-inl.h:20
IngameHud & getIngameHud() const
Return the in-game HUD instance.
Definition: EmergencyGui-inl.h:34