VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
baseWeaponControllerDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: basWpnCtlDesc.h,v $ $Revision: 1.11 $ $State: Exp $
7 *******************************************************************************/
8 
11 
14 
15 #ifndef DtBaseWeaponControllerDescriptor_H_
16 #define DtBaseWeaponControllerDescriptor_H_
17 
19 #include <readerWriter/rwReal.h>
20 #include <readerWriter/rwBoolean.h>
22 #include "vrfutil/simClock.h"
23 
31 {
32 public:
35  DtReaderWriterRegistry* parentRegistry = NULL);
36 
38  DtReaderWriterRegistry* parentRegistry = NULL);
39 
43  DtReaderWriterRegistry* parentRegistry = NULL);
44 
48 
51 
54  virtual DtString type() const;
55 
57  DtReaderWriterRegistry* parentRegistry = NULL) const;
58 
61  virtual bool preloadWeapon() const;
62  virtual void setPreloadWeapon(bool preloadWeapon);
64 
67  virtual DtReal maxVehicleSpeedToFire() const;
68  virtual void setMaxVehicleSpeedToFire(DtReal maxVehicleSpeedToFire);
70 
73  virtual DtReal maxAzimuthAngleOffBoresight() const;
74  virtual void setMaxAzimuthAngleOffBoresight(DtReal maxAngle);
76 
79  virtual DtReal maxElevationAngleOffBoresight() const;
80  virtual void setMaxElevationAngleOffBoresight(DtReal maxAngle);
82 
85  virtual DtTime loadAmmoTime() const;
86  virtual void setLoadAmmoTime(DtTime loadTime);
88 
91  virtual DtTime unloadAmmoTime() const;
92  virtual void setUnloadAmmoTime(DtTime unloadTime);
94 
97 
98  virtual bool disabledBySuppression() const;
99  virtual void setDisabledBySuppression(const bool isDisabled);
101 
103  static DtComponentDescriptor* creator();
104 
105 protected:
108 
109 protected:
113 
122 
132 
142 
155 
162 
169 
177 
186 };
187 
188 #endif
Definition: symbolString.h:20
DtRwBoolean myDisabledBySuppression
Parameter Name: disabled-by-suppression Parameter Description: A boolean that indicates if this weapo...
Definition: baseWeaponControllerDescriptor.h:184
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtRwTime myLoadAmmoTime
Parameter Name: load-ammo-time Parameter Description: The time delay from the time an ammo is selecte...
Definition: baseWeaponControllerDescriptor.h:168
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
DtRwReal myMaxAngleOffBoresight
Parameter Name: max-angle-off-boresight Parameter Description: NOTE: This parameter is deprecated...
Definition: baseWeaponControllerDescriptor.h:154
Definition: readerWriterRegistry.h:39
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
DtRwBoolean myDoWeaponPreload
Parameter Name: preload-weapon Parameter Description: Setting PreloadWeapon to True will result in t...
Definition: baseWeaponControllerDescriptor.h:161
File: vlClock.h.
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
DtRwReal myFireMaxVehicleSpeed
Parameter Name: max-vehicle-speed-to-fire Parameter Description: Some vehicles must stop to shoot...
Definition: baseWeaponControllerDescriptor.h:121
DtBaseWeaponControllerDescriptor; descriptor for the DtBaseWeaponController component.
Definition: baseWeaponControllerDescriptor.h:30
DtRwReal myMaxAzimuthAngleOffBoresight
Parameter Name: max-azimuth-angle-off-boresight Parameter Description: Some munitions, especially missiles, can be fired before the launcher is pointing at the target, since the missile can maneuver to reach the target. This method allows the user to set the maximum number of radians of azimuth off of boresight the target can be and still reasonably fire the weapon. Parameter Default Value: 0.005 Parameter Units: radians.
Definition: baseWeaponControllerDescriptor.h:131
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwTime myUnloadAmmoTime
Parameter Name: unload-ammo-time Parameter Description: The time is takes to remove ammo (of the wron...
Definition: baseWeaponControllerDescriptor.h:176
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()
DtRwReal myMaxElevationAngleOffBoresight
Parameter Name: max-elevation-angle-off-boresight Parameter Description: Some munitions, especially missiles, can be fired before the launcher is pointing at the target, since the missile can maneuver to reach the target. This method allows the user to set the maximum number of radians of elevation off of boresight the target can be and still reasonably fire the weapon. Parameter Default Value: 0.005 Parameter Units: radians.
Definition: baseWeaponControllerDescriptor.h:141

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)