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 double fuelEfficiency() const;
62  virtual void setFuelEfficiency(double d);
64 
67  virtual bool useHighFidelityGroundClamping() const;
68  virtual void setUseHighFidelityGroundClamping(bool yesOrNo);
70 
74  virtual const double convoyFollowSpeedFactor() const;
75  virtual void setConvoyFollowSpeedFactor(const double factor);
77 
80  virtual void setPassableObjectTypes(const DtRwEntityTypeList& objectTypes);
81  virtual DtRwEntityTypeList& passableObjectTypes();
82  virtual const DtRwEntityTypeList& passableObjectTypes() const;
84 
87  virtual void setExtraLanesEachDirection(unsigned);
88  virtual unsigned extraLanesEachDirection() const;
90 
93  virtual void setAddBreakdownLanes(bool);
94  virtual bool addBreakdownLanes() const;
96 
97  virtual DtComponentDescriptor * clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
98 
100  static DtComponentDescriptor * creator();
101 
102 protected:
105 
106 protected:
107 
111 
120 
136 
143 
148 
153 
158 
164 
170 };
171 
172 
173 
174 
DtRwBoolean myAddBreakdownLanes
Parameter Name: add-breakdown-lanes Parameter Description: If true, add one or two additional lanes t...
Definition: roadMovementDescriptor.h:157
#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:142
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:163
DtRwBoolean myClampToGround
Parameter Name: clamp-to-ground Parameter Description: Specifies whether or not to clamp to the terra...
Definition: roadMovementDescriptor.h:119
DtRwBoolean myUseHighFidelityGroundClamping
Parameter Name: use-high-fidelity-ground-clamping Parameter Description: Specifies whether or not to ...
Definition: roadMovementDescriptor.h:135
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:168
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
static DtComponentDescriptor * creator()
DtRwUnsigned myExtraLanes
Parameter Name: extra-lanes-each-direction Parameter Description: Extra lanes added to each direction...
Definition: roadMovementDescriptor.h:152
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:147
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 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)