Emergency 20 Dokumentation  4.2.0
RoadVehicleComponent-inl.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Includes ]
6 //[-------------------------------------------------------]
8 
9 #include <camp/arraymapper.hpp>
10 
11 
12 //[-------------------------------------------------------]
13 //[ Namespace ]
14 //[-------------------------------------------------------]
15 namespace em5
16 {
17 
18 
19  //[-------------------------------------------------------]
20  //[ Public methods ]
21  //[-------------------------------------------------------]
23  VehicleComponent(prototype),
24  mFrontWheelDirection(0.0f),
25  mChainAngle(0.0f),
26  mLightTypeToEntityIdsMapInitialized(false),
27  mBlinkerState(BLINKERS_OFF),
28  mBlinkerTime(qsf::Time::ZERO),
29  mBlueLightActive(false),
30  mBlueLightTime(0.0f),
31  mIsBrakeLightActive(false),
32  mBrakeLightTimeout(qsf::Time::ZERO),
33  mIsHeadLightActive(false),
34  mSpecialEntityId(qsf::getUninitialized<uint64>()),
35  mIsCommandable(false),
36  mTooBigToTow(false),
37  mCanSpawnDriver(false),
38  VehicleWheelsArray(*this, mVehicleWheelIds),
39  VehicleLightsArray(*this, mVehicleLightIds),
40  StateDamagedParticles(*this, mStateDamagedParticleIds),
41  StateHeavilyDamagedParticles(*this, mStateHeavilyDamagedParticleIds),
42  StateExplodedParticles(*this, mStateExplodedParticleIds)
43  {
44  // Nothing to do in here
45  }
46 
48  {
49  // Nothing to do in here
50  }
51 
53  {
54  mFrontWheelDirection = degrees;
55  }
56 
58  {
59  return mTooBigToTow;
60  }
61 
62  inline void RoadVehicleComponent::setTooBigToTow(bool tooBigToTow)
63  {
64  mTooBigToTow = tooBigToTow;
65  }
66 
68  {
69  return mCanSpawnDriver;
70  }
71 
72  inline void RoadVehicleComponent::setCanSpawnDriver(bool canSpawnDriver)
73  {
74  mCanSpawnDriver = canSpawnDriver;
75  }
76 
77 
78 //[-------------------------------------------------------]
79 //[ Namespace ]
80 //[-------------------------------------------------------]
81 } // em5
Definition: ActionPriority.h:13
bool getCanSpawnDriver() const
Definition: RoadVehicleComponent-inl.h:67
RoadVehicleComponent(qsf::Prototype *prototype)
Constructor.
Definition: RoadVehicleComponent-inl.h:22
bool getTooBigToTow() const
Definition: RoadVehicleComponent-inl.h:57
void setCanSpawnDriver(bool canSpawnDriver)
Definition: RoadVehicleComponent-inl.h:72
Vehicle component base class.
Definition: VehicleComponent.h:49
void setFrontWheelDirection(float degrees)
Definition: RoadVehicleComponent-inl.h:52
void setTooBigToTow(bool tooBigToTow)
Definition: RoadVehicleComponent-inl.h:62
uint64_t uint64
Definition: PlatformTypes.h:184
Definition: PickupPersonByParamedicAction.h:21
T getUninitialized()
Definition: GetUninitialized.h:38
virtual ~RoadVehicleComponent()
Destructor.
Definition: RoadVehicleComponent-inl.h:47
Prototype class.
Definition: Prototype.h:100