VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
roadMovementDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 #include <readerWriter/rwBoolean.h>
16 #include <vrfutil/rwEntityType.h>
18 #include "vrfutil/rwUnsigned.h"
19 #include "vrfutil/rwResource.h"
20 
22 
26 {
27 public:
30  parentRegistry = 0);
31 
34  DtReaderWriterRegistry * parentRegistry = 0);
35 
39 
41  virtual ~DtRoadMovementDescriptor() override;
42 
45  virtual DtString type() const override;
46 
49  virtual bool useGroundClamping() const;
50  virtual void setUseGroundCamping(bool doUse);
52 
55  virtual const DtEntityType& fuelType() const;
56  virtual void setFuelType(const DtEntityType& fuelType);
58 
61  virtual int fuelBin() const;
62  virtual void fuelBin(int d);
64 
67  virtual double fuelEfficiency() const;
68  virtual void setFuelEfficiency(double d);
70 
73  virtual bool useHighFidelityGroundClamping() const;
74  virtual void setUseHighFidelityGroundClamping(bool yesOrNo);
76 
80  virtual const double convoyFollowSpeedFactor() const;
81  virtual void setConvoyFollowSpeedFactor(const double factor);
83 
86  virtual void setPassableObjectTypes(const DtRwEntityTypeList& objectTypes);
87  virtual DtRwEntityTypeList& passableObjectTypes();
88  virtual const DtRwEntityTypeList& passableObjectTypes() const;
90 
93  virtual void setExtraLanesEachDirection(unsigned);
94  virtual unsigned extraLanesEachDirection() const;
96 
99  virtual void setAddBreakdownLanes(bool);
100  virtual bool addBreakdownLanes() const;
102 
105  virtual void setAllowOverrideLaneSpeedLimit(bool);
106  virtual bool allowOverrideLaneSpeedLimit() const;
108 
109  virtual DtComponentDescriptor * clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
110 
112  static DtComponentDescriptor * creator();
113 
114 protected:
117 
118 protected:
119 
123 
132 
148 
155 
160 
165 
170 
175 
181 
186 
192 };
193 
194 
195 
196 
DtRwBoolean myAddBreakdownLanes
Parameter Name: add-breakdown-lanes Parameter Description: If true, add one or two additional lanes t...
Definition: roadMovementDescriptor.h:169
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtRwReal myConvoySpeedFactor
Parameter Name: convoy-follow-speed-factor Parameter Description: This is the factor by with to mult...
Definition: roadMovementDescriptor.h:154
class DtRwEntityTypeList:
Definition: rwEntityTypeList.h:23
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
Description: Readable, Writable unsigned int.
Definition: rwUnsigned.h:31
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
DtRwResource myFuelType
Parameter Name: fuel-type Parameter Description: The fuel that will be consumed by the surface vessel...
Definition: roadMovementDescriptor.h:180
DtRwInt myFuelBin
Parameter Name: fuel-bin Parameter Description: Resource bin the fuel can be found in Parameter Defau...
Definition: roadMovementDescriptor.h:190
DtRwBoolean myClampToGround
Parameter Name: clamp-to-ground Parameter Description: Specifies whether or not to clamp to the terra...
Definition: roadMovementDescriptor.h:131
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwBoolean myUseHighFidelityGroundClamping
Parameter Name: use-high-fidelity-ground-clamping Parameter Description: Specifies whether or not to ...
Definition: roadMovementDescriptor.h:147
DtRwReal myFuelEfficiency
Parameter Name: fuel-efficieny Parameter Description: When a ground vehicle moves, how much of the fuel is used. Dependent on unit of measurement of resource Parameter Default Value: 100 .
Definition: roadMovementDescriptor.h:185
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtString type() const
Returns the type of component this descriptor describes. Used to create the descriptor on read from a...
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwBoolean myAllowOverrideLaneSpeedLimit
Parameter Name: allow-override-lane-speed-limit Parameter Description: If true, allows the vehicle to...
Definition: roadMovementDescriptor.h:174
static DtComponentDescriptor * creator()
DtRwUnsigned myExtraLanes
Parameter Name: extra-lanes-each-direction Parameter Description: Extra lanes added to each direction...
Definition: roadMovementDescriptor.h:164
This class will read in an old resource by name and convert it to the type, or, just read it as type...
Definition: rwResource.h:12
DtRwEntityTypeList myPassableObjectTypes
Parameter Name: passable-object-types Parameter Description: Object types to treat as potential obstr...
Definition: roadMovementDescriptor.h:159
A DtComponentDescriptor that has parameters that indicate how an entity should move along a rail segm...
Definition: roadMovementDescriptor.h:25

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)