Emergency 20 Dokumentation  4.2.0
GroundSpotComponent-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  {
16  // Nothing to do in here
17  }
18 
19  inline float GroundSpotComponent::getRadius() const
20  {
22  }
23 
25  {
26  return mGroundSpotLightEntity.get();
27  }
28 
30  {
32  }
33 
34  inline void GroundSpotComponent::setGroundSpotLightHeight(float groundSpotLightHeight)
35  {
36  if (mGroundSpotLightHeight != groundSpotLightHeight)
37  {
38  mGroundSpotLightHeight = groundSpotLightHeight;
39 
40  // Force update
41  setupGroundLight();
42  }
43  }
44 
45 
46 //[-------------------------------------------------------]
47 //[ Namespace ]
48 //[-------------------------------------------------------]
49 } // em5
Definition: ActionPriority.h:13
qsf::Entity * getGroundSpotLightEntity() const
Definition: GroundSpotComponent-inl.h:24
float getGroundSpotLightHeight() const
Definition: GroundSpotComponent-inl.h:29
float mGroundSpotLightHeight
Height of spotlight above entity.
Definition: GroundSpotComponent.h:124
Entity class.
Definition: Entity.h:46
float mGroundSpotLightRadius
Radius of highlighted circle on the ground.
Definition: GroundSpotComponent.h:122
qsf::WeakPtr< qsf::Entity > mGroundSpotLightEntity
Spotlight used to highlight a circle on the ground.
Definition: GroundSpotComponent.h:123
T * get() const
Get the internal pointer.
Definition: WeakPtr-inl.h:132
virtual ~GroundSpotComponent()
Destructor.
Definition: GroundSpotComponent-inl.h:14
void setGroundSpotLightHeight(float groundSpotLightHeight)
Definition: GroundSpotComponent-inl.h:34
float getRadius() const
Definition: GroundSpotComponent-inl.h:19