Emergency 20 Dokumentation  4.2.0
SpeedLimitComponent-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 here
17  }
18 
19  inline float SpeedLimitComponent::getRadius() const
20  {
21  return mRadius;
22  }
23 
24  inline void SpeedLimitComponent::setRadius(float radius)
25  {
27  }
28 
30  {
31  return mSpeedLimit;
32  }
33 
34  inline void SpeedLimitComponent::setSpeedLimit(float speedLimit)
35  {
37  }
38 
39 
40 //[-------------------------------------------------------]
41 //[ Namespace ]
42 //[-------------------------------------------------------]
43 } // em5
Definition: ActionPriority.h:13
void setSpeedLimit(float speedLimit)
Definition: SpeedLimitComponent-inl.h:34
void setRadius(float radius)
Definition: SpeedLimitComponent-inl.h:24
float getSpeedLimit() const
Get/Set the speed limit.
Definition: SpeedLimitComponent-inl.h:29
float getRadius() const
Get/Set the radius of the limiting effect.
Definition: SpeedLimitComponent-inl.h:19
static const uint32 RADIUS
"Radius" unique class property ID inside the class
Definition: SpeedLimitComponent.h:53
virtual ~SpeedLimitComponent()
Destructor.
Definition: SpeedLimitComponent-inl.h:14
bool assignAndPromoteChange(T &variable, const S &newValue, uint32 propertyId)
Comfort function for updating an exported member variable and promoting any change that happened...
Definition: Component-inl.h:141
static const uint32 SPEED_LIMIT
"SpeedLimit" unique class property ID inside the class
Definition: SpeedLimitComponent.h:54