Emergency 20 Dokumentation  4.2.0
BuildingLightTimeControlComponent-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  LightTimeControlComponent(prototype),
16  mWindowLightEarliestOnTime(qsf::Time::fromHours(20.0f)),
17  mWindowLightLatestOnTime(qsf::Time::fromHours(21.0f)),
18  mWindowLightEarliestOffTime(qsf::Time::fromHours(7.0f)),
19  mWindowLightLatestOffTime(qsf::Time::fromHours(8.0f)),
20  mWindowLightOnTime(qsf::Time::ZERO),
21  mWindowLightOffTime(qsf::Time::ZERO),
22  mWindowLightIsOnStatus(false)
23  {
24  // Noting here
25  }
26 
28  {
29  // Noting here
30  }
31 
33  {
34  return mWindowEmissiveMaterial;
35  }
36 
38  {
39  mWindowEmissiveMaterial = material;
40  }
41 
43  {
44  return mWindowLightEarliestOnTime;
45  }
46 
48  {
49  mWindowLightEarliestOnTime = time;
50  }
51 
53  {
54  return mWindowLightLatestOnTime;
55  }
56 
58  {
59  mWindowLightLatestOnTime = time;
60  }
61 
63  {
64  return mWindowLightEarliestOffTime;
65  }
66 
68  {
69  mWindowLightEarliestOffTime = time;
70  }
71 
73  {
74  return mWindowLightLatestOffTime;
75  }
76 
78  {
79  mWindowLightLatestOffTime = time;
80  }
81 
82 
83 //[-------------------------------------------------------]
84 //[ Namespace ]
85 //[-------------------------------------------------------]
86 } // em5
Definition: ActionPriority.h:13
BuildingLightTimeControlComponent(qsf::Prototype *prototype)
Constructor.
Definition: BuildingLightTimeControlComponent-inl.h:14
void setWindowLightLatestOnTime(const qsf::Time &time)
Set the time when the window lights should be latest switched on.
Definition: BuildingLightTimeControlComponent-inl.h:57
Definition: PickupPersonByParamedicAction.h:21
void setWindowLightLatestOffTime(const qsf::Time &time)
Set the time when the window lights should be latest switched off.
Definition: BuildingLightTimeControlComponent-inl.h:77
EMERGENCY 5 light time control component class.
Definition: LightTimeControlComponent.h:34
const qsf::Time getWindowLightLatestOffTime() const
Return the time when the window lights should be latest switched off.
Definition: BuildingLightTimeControlComponent-inl.h:72
Asset proxy class.
Definition: AssetProxy.h:57
void setWindowEmissiveMaterial(const qsf::AssetProxy &material)
Set the emissive material asset to use as window lights.
Definition: BuildingLightTimeControlComponent-inl.h:37
const qsf::Time getWindowLightEarliestOnTime() const
Return the time when the window lights should be earliest switched on.
Definition: BuildingLightTimeControlComponent-inl.h:42
virtual ~BuildingLightTimeControlComponent()
Destructor.
Definition: BuildingLightTimeControlComponent-inl.h:27
const qsf::AssetProxy & getWindowEmissiveMaterial() const
Return the emissive material asset to use as window lights.
Definition: BuildingLightTimeControlComponent-inl.h:32
const qsf::Time getWindowLightEarliestOffTime() const
Return the time when the window lights should be earliest switched off.
Definition: BuildingLightTimeControlComponent-inl.h:62
Prototype class.
Definition: Prototype.h:100
void setWindowLightEarliestOffTime(const qsf::Time &time)
Set the time when the window lights should be earliest switched off.
Definition: BuildingLightTimeControlComponent-inl.h:67
void setWindowLightEarliestOnTime(const qsf::Time &time)
Set the time when the window lights should be earliest switched on.
Definition: BuildingLightTimeControlComponent-inl.h:47
const qsf::Time getWindowLightLatestOnTime() const
Return the time when the window lights should be latest switched on.
Definition: BuildingLightTimeControlComponent-inl.h:52
Data type for encapsulating time information. It might represents points in time and time spans...
Definition: Time.h:32