VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bombStateRepository.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
11 
12 
14 #include "vrfutil/simMunition.h"
15 
17 #include <vlutil/vlMachineTypes.h>
18 #include <matrix/vlVector.h>
19 
20 class DtBombParameters;
21 class DtLocalobjectManager;
22 
28 {
29 private:
30  //default constructor do not use
32 
35 
37  const DtBombStateRepository & operator=(const
38  DtBombStateRepository & orig);
39 
40 public:
41 
43  DtBombStateRepository(DtLocalObject* vrfObject, const DtString& rwName = DtString::nullString(),
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
47  virtual ~DtBombStateRepository();
48 
50  virtual DtString type() const;
51 
53  virtual const int vrfMovingObjectStateRepositorySubType() const;
54 
56  virtual const int bombEntityStateRepositorySubType() const;
57 
60  virtual void initializeFromParameters();
61 
64  const DtBombParameters* bombParameters() const;
65 
69  virtual DtReal maxRange() const;
70  virtual void setMaxRange(const DtReal range);
72 
75  virtual DtReal maxRangeAltitude() const;
76  virtual void setMaxRangeAltitude(const DtReal range);
78 
81  virtual DtReal cepRadius() const;
82  virtual void setCepRadius(const DtReal cepRadius);
84 
86  static DtVrfObjectStateRepository * creator(const DtString& name,
87  DtLocalObject* vrfObject, DtReaderWriterRegistry * parentRegistry);
88 
89 protected:
91  DtReal myMaxRange;
92 
95 
103  DtReal myCepRadius;
104 };
DtReal myMaxRangeAltitude
The altitude at which the maximum range of the bomb can be achieved.
Definition: bombStateRepository.h:94
Contains the DtVrfMovingObjectStateRepository class declaration.
Description: This repository holds all information that is common to all the forms of all objects wit...
Definition: vrfMovingObjectStateRepository.h:31
virtual void initializeFromParameters()
This repository holds all information that is common to all bomb entities.
Definition: bombStateRepository.h:27
static DtVrfObjectStateRepository * creator(const DtString &name, DtLocalObject *vrfObject, DtReaderWriterRegistry *parentRegistry)
DtVrfMovingObjectStateRepository & operator=(const DtVrfMovingObjectStateRepository &orig)
Assignment Operator.
Definition: readerWriterRegistry.h:39
virtual const int vrfMovingObjectStateRepositorySubType() const
Returns DtVrfMovingObjectStateRepositorySubTypeBase.
Description: This repository is an internal repository accessible only by local objects. It holds all information that is common to all the forms of all entity/aggregate/control objects within VR-Forces.
Definition: vrfObjectStateRepository.h:90
This file contains the class declaration for the.
virtual DtString type() const
returns DtSimObjectStateRepositoryType
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtReal myMaxRange
The maximum range of the bomb when it is released at myMaxRangeAltitude.
Definition: bombStateRepository.h:91
DtReal myCepRadius
Radius of a circle within which 50 % of the missiles fired will impact. For example, if a cep-radius of 100 meters is specified, then 50 % of missiles fired at a given target should impact within 100 meters of that target and the remaining 50 % of the missile will impact at a distance greater that 100 meters from the target. This assumes that the a missile fired was potentially capable of hitting the desired target (that is, it was in range).
Definition: bombStateRepository.h:103
Contains the set of readable/writeable parameters associated with an bomb type of entity...
Definition: bombParameters.h:22
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

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)