VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
munitionDispersalAngleDeterminant.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
13 #include <readerWriter/rwReal.h>
14 #include <matrix/dcm.h>
15 #include <matrix/vlVector.h>
16 
18 
23 {
24 public:
27 
29 
30  virtual DtMunitionDispersalDeterminant* clone() const;
31 
32  virtual DtMunitionDispersalAngleParams* dispersalAngleParams();
33 
36 
39  virtual void initializeDispersal(const DtPhysicalWorld* physicalWorld,
40  const DtVector& detonationLocation, DtSharedVrfObjectReference shooter);
41 
45  virtual void nextDetonationResult(DtVector& hitLocation,
46  DtSharedVrfObjectReference& hitEntity) const;
47 
48 protected:
49 
53 
55  double myRange;
56 
59 
62 
64  std::vector<const DtVrfObject*> myPossibleHitEntities;
65 };
66 
DtDcm myLocalToTopoDcm
Definition: munitionDispersalAngleDeterminant.h:51
virtual void initializeDispersal(const DtPhysicalWorld *physicalWorld, const DtVector &detonationLocation, DtSharedVrfObjectReference shooter)
Initializes the determinant for dispersal of a new set of detonations when the location of the shoote...
static DtBaseMunitionDispersalDeterminant * creator()
Creator function.
Definition: munitionDispersalAngleDeterminant.h:35
double myProbibilityEntityHit
The chance of a round hitting an entity directly.
Definition: munitionDispersalAngleDeterminant.h:61
DtMunitionDispersalDeterminant calculates where individual detonations in a burst of fire or cluster ...
Definition: munitionDispersalDeterminant.h:20
virtual void nextDetonationResult(DtVector &hitLocation, DtSharedVrfObjectReference &hitEntity) const =0
Determines where the next round hits, and if it directly hits an entity.
DtDcm myTopoToLocalDcm
Definition: munitionDispersalAngleDeterminant.h:52
DtSharedVrfObjectReference class will allocate an empty DtVrfObjectReference if one is not assigned s...
Definition: vrfObjectReference.h:102
The DtPhysicalWorld is the primary interface to and manager of all of the &quot;physical&quot; aspects of the s...
Definition: physicalWorld.h:87
virtual DtMunitionDispersalDeterminant * clone() const =0
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
double myRange
Range from shooter to detonation.
Definition: munitionDispersalAngleDeterminant.h:55
double myDispersalRange
Dispersal range of rounds around the primary detonation location.
Definition: munitionDispersalAngleDeterminant.h:58
DtMunitionDispersalAngleDeterminant specifies how a burst of fire is dispersed around the target base...
Definition: munitionDispersalAngleDeterminant.h:22
std::vector< const DtVrfObject * > myPossibleHitEntities
The entities that may be hit.
Definition: munitionDispersalAngleDeterminant.h:64
DtVector myTopoDetLocation
Definition: munitionDispersalAngleDeterminant.h:50
DtMunitionDispersalAngleParams.
Definition: munitionDispersalAngleParams.h:21
DtBaseMunitionDispersalDeterminant is a base class for classes that calculate where individual detona...
Definition: baseMunitionDispersalDeterminant.h:21

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)