VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fireMissionInformation.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 #include "readerWriter/rwVector.h"
14 #include <readerWriter/rwInt.h>
15 #include <readerWriter/rwList.h>
16 #include <readerWriter/rwString.h>
17 #include <readerWriter/rwReal.h>
18 #include "vrfutil/rwTaitBryan.h"
19 #include <vl/hostStructs.h>
21 #include <vrfutil/rwUUID.h>
22 
23 #include <map>
24 
28 
30 
33 {
34 public:
36 
38  DtReaderWriterRegistry* const parentRegistry = 0);
39 
41  DtReaderWriterRegistry* const parentRegistry = 0);
42 
44  DtFireMissionInformation(const DtString & writeName,const DtFireMissionInformation& orig,
45  DtReaderWriterRegistry* const parentRegistry = 0);
46 
47  virtual ~DtFireMissionInformation();
48 
50 
51  const DtRwVector& currentTargetLocation() const {return myCurrentTargetLocation; };
52  void setCurrentTargetLocation(const DtVector& loc) { myCurrentTargetLocation=loc; };
53 
57  const DtRwVrfObjectReference& target() const { return myTarget; };
58 
60  void setTarget(const DtUUID& name) { myTarget.setUUID(name); };
61 
62  const DtRwString& ammoType() const { return myAmmoType; };
63  void setAmmoType(const DtString& ammo) { myAmmoType = ammo; };
64 
65  const DtRwInt numberOfRounds() const { return myNumberRounds; };
66  void setNumberOfRounds(const int num) { myNumberRounds = num; };
67 
69  virtual void setHeightAboveTerrain(DtReal height) { myHeightAboveTerrain = height; };
71  virtual DtReal heightAboveTerrain() { return myHeightAboveTerrain; };
72 
74  virtual void setMuzzleSpeed(DtReal v) { myMuzzleSpeed = v; myMuzzleSpeed.setValueSpecified(true);};
76  virtual DtRwReal muzzleSpeed() { return myMuzzleSpeed; };
77 
79  virtual void setMuzzleOrientation(const DtRwTaitBryan & o) { myMuzzleOrientation = o; myMuzzleOrientation.setValueSpecified(true);};
81  virtual DtRwTaitBryan & muzzleOrientation() { return myMuzzleOrientation; };
82 
83 protected:
84  DtRwVrfObjectReference myTarget;
91 };
92 
95 
97 typedef std::map<DtString, DtFireMissionInformation> DtMappedFireMissionList;
98 
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
const DtRwVrfObjectReference & target() const
If the fire mission objective is an entity we need to know it so we can update the location...
Definition: fireMissionInformation.h:57
Definition: symbolString.h:20
DtRwTemplatedListPtr< DtFireMissionInformation, true > DtFireMissionList
Definition: fireMissionInformation.h:94
void setAmmoType(const DtString &ammo)
Definition: fireMissionInformation.h:63
DtRwInt myNumberRounds
Definition: fireMissionInformation.h:87
Definition: readerWriter.h:85
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
DtRwString myAmmoType
Definition: fireMissionInformation.h:85
File: rwTaitBryan.h.
Definition: rwTaitBryan.h:24
Definition: readerWriterRegistry.h:39
virtual void setMuzzleOrientation(const DtRwTaitBryan &o)
If specified in the task set the orientation of the munition. Usefull for hand grenades.
Definition: fireMissionInformation.h:79
virtual void setValueSpecified(bool specified, bool recurse=false)
The specified flags are used for optional values.
Definition: fireMissionInformation.h:32
Definition: rwVector.h:23
virtual DtReal heightAboveTerrain()
Get the height above terrain for the shell to detonate.
Definition: fireMissionInformation.h:71
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtRwReal myHeightAboveTerrain
Definition: fireMissionInformation.h:88
void setNumberOfRounds(const int num)
Definition: fireMissionInformation.h:66
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwReal myMuzzleSpeed
Definition: fireMissionInformation.h:89
void setTarget(const DtUUID &name)
Was: setTargetName.
Definition: fireMissionInformation.h:60
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Class used as the reader/writer implementation of the DtVrfObjectReference.
Definition: vrfObjectReference.h:204
virtual void setHeightAboveTerrain(DtReal height)
Set the height above terrain for the shell to detonate.
Definition: fireMissionInformation.h:69
void setCurrentTargetLocation(const DtVector &loc)
Definition: fireMissionInformation.h:52
DtRwVector myCurrentTargetLocation
Definition: fireMissionInformation.h:86
A version of DtRwList that contains a homogeneous list of a templated RW type.
Definition: rwTemplatedList.h:26
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
std::map< DtString, DtFireMissionInformation > DtMappedFireMissionList
Definition: fireMissionInformation.h:97
const DtRwInt numberOfRounds() const
Definition: fireMissionInformation.h:65
DtRwTaitBryan myMuzzleOrientation
Definition: fireMissionInformation.h:90
const DtRwVector & currentTargetLocation() const
Definition: fireMissionInformation.h:51
virtual DtRwReal muzzleSpeed()
Get the initial velocity for the shell to be fired at.
Definition: fireMissionInformation.h:76
virtual void setMuzzleSpeed(DtReal v)
If specified in the task set the initial speed of the munition. Usefull for hand grenades.
Definition: fireMissionInformation.h:74
File: rwVector.h.
const DtRwString & ammoType() const
Definition: fireMissionInformation.h:62

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)