Emergency 20 Dokumentation  4.2.0
FireSpreadCalculation-inl.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Namespace ]
6 //[-------------------------------------------------------]
7 namespace em5
8 {
9 
10 
11  //[-------------------------------------------------------]
12  //[ Public methods ]
13  //[-------------------------------------------------------]
14  inline const std::vector<FireSpreadCalculation::DebugRequestData>& FireSpreadCalculation::getDebugDrawRequests() const
15  {
16  return mDebugDrawRequestsCache;
17  }
18 
19  inline void FireSpreadCalculation::setDebugActive(bool isActive)
20  {
21  mShowDebug = isActive;
22  }
23 
25  {
26  return mCalculationTime;
27  }
28 
30  {
31  return qsf::Time::fromSeconds(mSecondsPassed);
32  }
33 
34 
35 //[-------------------------------------------------------]
36 //[ Namespace ]
37 //[-------------------------------------------------------]
38 } // em5
Definition: ActionPriority.h:13
int64 getCalculationTime() const
Returns the time (in microseconds) how much time the thread spent to do the calculation.
Definition: FireSpreadCalculation-inl.h:24
void setDebugActive(bool isActive)
Setter for setting the information of debug request data should be generated for fire receiver lines...
Definition: FireSpreadCalculation-inl.h:19
int64_t int64
Definition: PlatformTypes.h:183
const qsf::Time getTimePassed() const
Returns the time passed value which was used for the calculation (for time based interpolation) ...
Definition: FireSpreadCalculation-inl.h:29
static Time fromSeconds(float seconds)
Definition: Time-inl.h:74
const std::vector< DebugRequestData > & getDebugDrawRequests() const
Returns a list of DebugRequestData items for displaying fire receiver debug draw info.
Definition: FireSpreadCalculation-inl.h:14
Data type for encapsulating time information. It might represents points in time and time spans...
Definition: Time.h:32