VR-Forces 5.0.3 Developer's Guide
 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/vlDcm.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, DtSimObjectReference shooter);
41 
45  virtual void nextDetonationResult(DtVector& hitLocation,
46  DtSimObjectReference& hitEntity) const;
47 
48 protected:
49 
53 
55  double myRange;
56 
59 
62 
64  std::vector<DtUUID> myPossibleHitEntities;
65 };
66 
DtDcm myLocalToTopoDcm
Definition: munitionDispersalAngleDeterminant.h:51
static DtBaseMunitionDispersalDeterminant * creator()
Creator function.
Definition: munitionDispersalAngleDeterminant.h:35
double myProbibilityEntityHit
The chance of a round hitting an entity directly.
Definition: munitionDispersalAngleDeterminant.h:61
std::vector< DtUUID > myPossibleHitEntities
The entities that may be hit.
Definition: munitionDispersalAngleDeterminant.h:64
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
DtMunitionDispersalDeterminant calculates where individual detonations in a burst of fire or cluster ...
Definition: munitionDispersalDeterminant.h:20
DtDcm myTopoToLocalDcm
Definition: munitionDispersalAngleDeterminant.h:52
The DtPhysicalWorld is the primary interface to and manager of all of the &quot;physical&quot; aspects of the s...
Definition: physicalWorld.h:102
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
DtVector myTopoDetLocation
Definition: munitionDispersalAngleDeterminant.h:50
virtual void nextDetonationResult(DtVector &hitLocation, DtSimObjectReference &hitEntity) const =0
Determines where the next round hits, and if it directly hits an entity. hitEntity will be invalid if...
virtual void initializeDispersal(const DtPhysicalWorld *physicalWorld, const DtVector &detonationLocation, DtSimObjectReference shooter)
Initializes the determinant for dispersal of a new set of detonations when the location of the shoote...
DtMunitionDispersalAngleParams specifies the parameters used by a determinant to determine how a burs...
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 Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)