Emergency 20 Dokumentation  4.2.0
Game-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 != mGameSimulation, "The game simulation instance is invalid", QSF_REACT_THROW);
24  return *mGameSimulation;
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 != mGameAnimation, "The game animation instance is invalid", QSF_REACT_THROW);
31  return *mGameAnimation;
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 != mSoundTrackManager, "The game music level system instance is invalid", QSF_REACT_THROW);
38  return *mSoundTrackManager;
39  }
40 
42  {
43  return mGameSessionConfiguration;
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 != mPlayerManager, "The player manager instance is invalid", QSF_REACT_THROW);
50  return *mPlayerManager;
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 != mRightsManager, "The rights manager instance is invalid", QSF_REACT_THROW);
57  return *mRightsManager;
58  }
59 
61  {
62  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
63  QSF_ASSERT(nullptr != mSelectionManager, "The selection manager instance is invalid", QSF_REACT_THROW);
64  return *mSelectionManager;
65  }
66 
68  {
69  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
70  QSF_ASSERT(nullptr != mGameCounterManager, "The game counter manager instance is invalid", QSF_REACT_THROW);
71  return *mGameCounterManager;
72  }
73 
75  {
76  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
77  QSF_ASSERT(nullptr != mGameTimerManager, "The game timer manager instance is invalid", QSF_REACT_THROW);
78  return *mGameTimerManager;
79  }
80 
82  {
83  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
84  QSF_ASSERT(nullptr != mTargetPointManager, "The target point manager instance is invalid", QSF_REACT_THROW);
85  return *mTargetPointManager;
86  }
87 
89  {
90  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
91  QSF_ASSERT(nullptr != mOrderInfoManager, "The order info manager instance is invalid", QSF_REACT_THROW);
92  return *mOrderInfoManager;
93  }
94 
96  {
97  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
98  QSF_ASSERT(nullptr != mGangsterTypeManager, "The gangster type manager instance is invalid", QSF_REACT_THROW);
99  return *mGangsterTypeManager;
100  }
101 
103  {
104  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
105  QSF_ASSERT(nullptr != mSpecsGroupManager, "The specs group manager instance is invalid", QSF_REACT_THROW);
106  return *mSpecsGroupManager;
107  }
108 
110  {
111  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
112  QSF_ASSERT(nullptr != mHintSystem, "The hint system instance is invalid", QSF_REACT_THROW);
113  return *mHintSystem;
114  }
115 
117  {
118  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
119  QSF_ASSERT(nullptr != mCutscenePlayer, "The cutscene player instance is invalid", QSF_REACT_THROW);
120  return *mCutscenePlayer;
121  }
122 
124  {
125  // It's safe in here to cast the pointer to a reference because we know that the pointer is never ever a null pointer
126  QSF_ASSERT(nullptr != mOverlayManager, "The overlay manager instance is invalid", QSF_REACT_THROW);
127  return *mOverlayManager;
128  }
129 
130 
131 //[-------------------------------------------------------]
132 //[ Namespace ]
133 //[-------------------------------------------------------]
134 } // em5
Definition: ActionPriority.h:13
Hint system knows how to trigger hints and delegates hint calls from gameplay to GUI.
Definition: HintSystem.h:48
SelectionManager & getSelectionManager() const
Return the game's selection manager.
Definition: Game-inl.h:60
EMERGENCY 5 overlay manager class.
Definition: OverlayManager.h:45
Definition: OrderInfoManager.h:28
Target point manager class.
Definition: TargetPointManager.h:45
const RightsManager & getRightsManager() const
Return the rights manager.
Definition: Game-inl.h:53
OverlayManager & getOverlayManager() const
Return the overlay manager.
Definition: Game-inl.h:123
HintSystem & getHintSystem() const
Returns the hint system.
Definition: Game-inl.h:109
#define QSF_REACT_THROW
Definition: ErrorHandling.h:203
EMERGENCY 5 rights manager.
Definition: RightsManager.h:37
OrderInfoManager & getOrderInfoManager() const
Returns the order info manager.
Definition: Game-inl.h:88
Specs group manager class.
Definition: SpecsGroupManager.h:35
qsf::game::GameTimerManager & getGameTimerManager() const
Return the game timer manager.
Definition: Game-inl.h:74
Manager for gangster type definitions.
Definition: GangsterTypeManager.h:32
GangsterTypeManager & getGangsterTypeManager() const
Returns the gangster type manager.
Definition: Game-inl.h:95
GameSimulation & getSimulation() const
Return the game simulation instance.
Definition: Game-inl.h:20
EMERGENCY 5 player manager.
Definition: PlayerManager.h:45
EMERGENCY 5 cutscene player.
Definition: CutscenePlayer.h:47
PlayerManager & getPlayerManager() const
Return the player manager.
Definition: Game-inl.h:46
CutscenePlayer & getCutscenePlayer() const
Return the cutscene player.
Definition: Game-inl.h:116
GameSessionConfiguration & getGameSessionConfiguration() const
Return the game session configuration.
Definition: Game-inl.h:41
EMERGENCY 5 selection manager class.
Definition: SelectionManager.h:42
EMERGENCY 5 game session configuration.
Definition: GameSessionConfiguration.h:44
SpecsGroupManager & getSpecsGroupManager() const
Returns the specs group manager.
Definition: Game-inl.h:102
EMERGENCY 5 game animation class.
Definition: GameAnimation.h:48
qsf::game::GameCounterManager & getGameCounterManager() const
Return the game counter manager.
Definition: Game-inl.h:67
Game timer manager.
Definition: GameTimerManager.h:36
GameAnimation & getAnimation() const
Return the game animation instance.
Definition: Game-inl.h:27
Sound track manager class.
Definition: SoundTrackManager.h:48
#define QSF_ASSERT(condition, explanation, reaction)
Definition: ErrorHandling.h:138
qsf::logic::TargetPointManager & getTargetPointManager() const
Return the target point manager.
Definition: Game-inl.h:81
Game counter manager class.
Definition: GameCounterManager.h:51
qsf::SoundTrackManager & getSoundTrackManager() const
Return sound track manager instance.
Definition: Game-inl.h:34
EMERGENCY 5 game simulation class.
Definition: GameSimulation.h:51