VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
weaponActuatorDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #ifndef DtWeaponActuatorDescriptor_H_
13 #define DtWeaponActuatorDescriptor_H_
14 
16 #include <readerWriter/rwReal.h>
17 #include "readerWriter/rwVector.h"
18 #include "readerWriter/rwInt.h"
19 
25 {
26 public:
29  parentRegistry = 0);
30 
33  DtReaderWriterRegistry * parentRegistry = 0);
34 
37 
39  virtual ~DtWeaponActuatorDescriptor() override;
40 
43  virtual DtString type() const override;
44 
45  virtual DtComponentDescriptor * clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
46 
47 
50  virtual DtReal projectileStartSpeed() const;
51  virtual void setProjectileStartSpeed(DtReal startSpeed);
53 
56  virtual const DtVector& muzzleOffset() const;
57  virtual void setMuzzleOffset(const DtVector& muzzleOffset);
58  virtual bool isMuzzleOffsetSpecified() const;
60 
62  virtual int roundsPerMagazine() const;
63  virtual void setRoundsPerMagazine(const int rounds);
64 
66  static DtComponentDescriptor * creator();
67 
68 protected:
71 
72 protected:
76 
86 
101 
110 
112 };
113 
114 #endif
DtActuatorComponentDescriptor & operator=(const DtActuatorComponentDescriptor &orig)
assignment
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
End User Description: DtActuatorComponentDescriptor contains parameters common to all actuator compon...
Definition: actuatorComponentDescriptor.h:47
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
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=0) const override
DtRwOffsetVector myMuzzleOffset
Parameter Name: muzzle-offset Parameter Description: This vector is an offset used to set the positio...
Definition: weaponActuatorDescriptor.h:100
DtRwReal myProjectileStartSpeed
Parameter Name: projectile-start-speed Parameter Description: Used in calculating the projectile velo...
Definition: weaponActuatorDescriptor.h:85
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtString type() const override
Returns the type of component this descriptor describes. Used to create the descriptor on read from a...
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
static DtComponentDescriptor * creator()
Specialized vector that can be used for the knowledge of an &quot;offset&quot; rather than location vector...
Definition: rwVector.h:112
DtWeaponActuatorDescriptor; descriptor for the DtWeaponActuator component.
Definition: weaponActuatorDescriptor.h:24
File: rwVector.h.
DtRwInt myRoundsPerMagazine
Parameter Name: rounds-per-magazine Parameter Description: This is the number of munitions in a magaz...
Definition: weaponActuatorDescriptor.h:109

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)