Emergency 20 Dokumentation  4.2.0
WeatherComponent-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  //[-------------------------------------------------------]
15  qsf::game::WeatherComponent(prototype),
16  mUseUmbrellas(false),
17  mLastUseUmbrellaValue(0.f),
18  mUmbrellaUpdateTimer(qsf::Time::ZERO),
19  mCheckUmbrellaChanges(false)
20  {
21  // Nothing to do
22  }
23 
25  {
26  // Nothing to do in here
27  }
28 
30  {
31  return mUseUmbrellas;
32  }
33 
34 
35 //[-------------------------------------------------------]
36 //[ Namespace ]
37 //[-------------------------------------------------------]
38 } // em5
Definition: ActionPriority.h:13
EMERGENCY 5 weather core component class.
Definition: WeatherComponent.h:41
Definition: PickupPersonByParamedicAction.h:21
bool getUseUmbrellas() const
Check whether people should use umbrellas because of rain right now.
Definition: WeatherComponent-inl.h:29
virtual ~WeatherComponent()
Destructor.
Definition: WeatherComponent-inl.h:24
Prototype class.
Definition: Prototype.h:100
WeatherComponent(qsf::Prototype *prototype)
Constructor.
Definition: WeatherComponent-inl.h:14