Emergency 20 Dokumentation  4.2.0
FireSystem-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 != mFireMaterialManager, "EM5: The Fire material manager is invalid", QSF_REACT_THROW);
24  return *mFireMaterialManager;
25  }
26 
28  {
29  return mFireSimulationEnabled;
30  }
31 
33  {
34  mResetFireSystem = true;
35  }
36 
38  {
39  return mFireRadiansVisualisationMode;
40  }
41 
43  {
44  mFireRadiansVisualisationMode = visualisationMode;
45  }
46 
48  {
49  return mFireSpreadVisualisationMode;
50  }
51 
53  {
54  mFireSpreadVisualisationMode = visualisationMode;
55  }
56 
58  {
59  return mFireSpreadLinesVisualisationMode;
60  }
61 
63  {
64  mFireSpreadLinesVisualisationMode = visualisationMode;
65  }
66 
67 
68  //[-------------------------------------------------------]
69  //[ Public virtual qsf::System methods ]
70  //[-------------------------------------------------------]
71  inline const char* FireSystem::getName() const
72  {
73  return "Fire system";
74  }
75 
76 
77 //[-------------------------------------------------------]
78 //[ Namespace ]
79 //[-------------------------------------------------------]
80 } // em5
virtual const char * getName() const override
Get the name of the system.
Definition: FireSystem-inl.h:71
Definition: ActionPriority.h:13
SimulationVisualisationMode
Definition: FireSystem.h:71
#define QSF_REACT_THROW
Definition: ErrorHandling.h:203
Manager contains all fire materials.
Definition: FireMaterialManager.h:47
void setFireSpreadLinesVisualisationMode(FireSpreadLinesVisualisationMode visualisationMode)
Definition: FireSystem-inl.h:62
SimulationVisualisationMode getFireRadiansSimulationVisualisationMode() const
Definition: FireSystem-inl.h:37
void setFireRadiansSimulationVisualisationMode(SimulationVisualisationMode visualisationMode)
Definition: FireSystem-inl.h:42
FireSpreadLinesVisualisationMode getFireSpreadLinesVisualisationMode() const
Definition: FireSystem-inl.h:57
void resetFireSystem()
Set a flag to reset the fire spread calculation.
Definition: FireSystem-inl.h:32
#define QSF_ASSERT(condition, explanation, reaction)
Definition: ErrorHandling.h:138
void setFireSpreadSimulationVisualisationMode(SimulationVisualisationMode visualisationMode)
Definition: FireSystem-inl.h:52
FireMaterialManager & getFireMaterialManager() const
Get the fire material manager instance.
Definition: FireSystem-inl.h:20
bool getFireSimulationActive() const
Definition: FireSystem-inl.h:27
FireSpreadLinesVisualisationMode
Definition: FireSystem.h:78
SimulationVisualisationMode getFireSpreadSimulationVisualisationMode() const
Definition: FireSystem-inl.h:47