VR-Forces 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() override;
48 
50  virtual DtString type() const override;
51 
53  virtual const int vrfMovingObjectStateRepositorySubType() const override;
54 
56  virtual const int bombEntityStateRepositorySubType() const;
57 
60  virtual void initializeFromParameters() override;
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
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:91
This file contains the class declaration for the.
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual void initializeFromParameters() override
virtual DtString type() const override
returns DtSimObjectStateRepositoryType
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.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)