VR-Forces 4.10 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 class DtSimTask;
31 
34 {
35 public:
37 
39  DtReaderWriterRegistry* const parentRegistry = 0);
40 
42  DtReaderWriterRegistry* const parentRegistry = 0);
43 
45  DtFireMissionInformation(const DtString & writeName,const DtFireMissionInformation& orig,
46  DtReaderWriterRegistry* const parentRegistry = 0);
47 
48  virtual ~DtFireMissionInformation();
49 
51 
52  const DtRwVector& currentTargetLocation() const {return myCurrentTargetLocation; };
53  void setCurrentTargetLocation(const DtVector& loc) { myCurrentTargetLocation=loc; };
54 
58  const DtRwVrfObjectReference& target() const { return myTarget; };
59 
61  void setTarget(const DtUUID& name) { myTarget.setUUID(name); };
62 
63  const DtRwString& ammoType() const { return myAmmoType; };
64  void setAmmoType(const DtString& ammo) { myAmmoType = ammo; };
65 
66  const DtRwInt numberOfRounds() const { return myNumberRounds; };
67  void setNumberOfRounds(const int num) { myNumberRounds = num; };
68 
70  virtual void setHeightAboveTerrain(DtReal height) { myHeightAboveTerrain = height; };
72  virtual DtReal heightAboveTerrain() { return myHeightAboveTerrain; };
73 
75  virtual void setMuzzleSpeed(DtReal v) { myMuzzleSpeed = v; myMuzzleSpeed.setValueSpecified(true);};
77  virtual DtRwReal muzzleSpeed() { return myMuzzleSpeed; };
78 
80  virtual void setMuzzleOrientation(const DtRwTaitBryan & o) { myMuzzleOrientation = o; myMuzzleOrientation.setValueSpecified(true);};
82  virtual DtRwTaitBryan & muzzleOrientation() { return myMuzzleOrientation; };
83 
85  const DtRwVrfObjectReference& route() const { return myRoute; };
86  void setRoute(const DtUUID& name) { myRoute.setUUID(name); };
87 
88  virtual const DtReal detonationProximity() const { return myDetonationProximity; };
89  virtual void setDetonationProximity(DtReal prox) { myDetonationProximity = prox; };
90 
91 protected:
92  DtRwVrfObjectReference myTarget;
102 };
103 
106 
108 typedef std::map<DtString, DtFireMissionInformation> DtMappedFireMissionList;
109 
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
virtual void setDetonationProximity(DtReal prox)
Definition: fireMissionInformation.h:89
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:58
Definition: symbolString.h:20
DtRwTemplatedListPtr< DtFireMissionInformation, true > DtFireMissionList
Definition: fireMissionInformation.h:105
virtual DtRwTaitBryan & muzzleOrientation()
Get the initial velocity for the shell to be fired at.
Definition: fireMissionInformation.h:82
void setAmmoType(const DtString &ammo)
Definition: fireMissionInformation.h:64
DtRwInt myNumberRounds
Definition: fireMissionInformation.h:95
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:93
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:80
virtual void setValueSpecified(bool specified, bool recurse=false)
The specified flags are used for optional values.
Definition: fireMissionInformation.h:33
Definition: rwVector.h:23
virtual DtReal heightAboveTerrain()
Get the height above terrain for the shell to detonate.
Definition: fireMissionInformation.h:72
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtRwReal myHeightAboveTerrain
Definition: fireMissionInformation.h:96
void setNumberOfRounds(const int num)
Definition: fireMissionInformation.h:67
Description: Readable, Writable int.
Definition: rwInt.h:25
void setRoute(const DtUUID &name)
Definition: fireMissionInformation.h:86
const DtRwVrfObjectReference & route() const
Additional Parameters for Cruise Missiles.
Definition: fireMissionInformation.h:85
DtRwReal myMuzzleSpeed
Definition: fireMissionInformation.h:97
void setTarget(const DtUUID &name)
Was: setTargetName.
Definition: fireMissionInformation.h:61
virtual const DtReal detonationProximity() const
Definition: fireMissionInformation.h:88
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:70
DtRwVrfObjectReference myRoute
Additional parameters needed for cruise missiles.
Definition: fireMissionInformation.h:100
void setCurrentTargetLocation(const DtVector &loc)
Definition: fireMissionInformation.h:53
DtRwReal myDetonationProximity
Definition: fireMissionInformation.h:101
DtRwVector myCurrentTargetLocation
Definition: fireMissionInformation.h:94
A version of DtRwList that contains a homogeneous list of a templated RW type.
Definition: rwTemplatedList.h:26
DtSimTask is an abstract base class from which real tasks can derive.
Definition: simTask.h:31
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
std::map< DtString, DtFireMissionInformation > DtMappedFireMissionList
Definition: fireMissionInformation.h:108
const DtRwInt numberOfRounds() const
Definition: fireMissionInformation.h:66
DtRwTaitBryan myMuzzleOrientation
Definition: fireMissionInformation.h:98
const DtRwVector & currentTargetLocation() const
Definition: fireMissionInformation.h:52
virtual DtRwReal muzzleSpeed()
Get the initial velocity for the shell to be fired at.
Definition: fireMissionInformation.h:77
virtual void setMuzzleSpeed(DtReal v)
If specified in the task set the initial speed of the munition. Usefull for hand grenades.
Definition: fireMissionInformation.h:75
File: rwVector.h.
const DtRwString & ammoType() const
Definition: fireMissionInformation.h:63

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)