VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bombPSR.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 
12 #include "vrfobjcore/simObject.h"
13 #include <readerWriter/rwReal.h>
14 #include "readerWriter/rwVector.h"
15 #include <readerWriter/rwString.h>
16 #include <readerWriter/rwInt.h>
17 #include <vrfutil/rwUUID.h>
19 
22 {
27 };
28 
35 {
36 public:
38  DtBombPSR(DtLocalObject* vrfObject,
39  const DtString& rwName = DtString::nullString(),
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
43  DtBombPSR(const DtBombPSR& orig,
44  const DtString& rwName = DtString::nullString(),
45  DtReaderWriterRegistry* parentRegistry = 0);
46 
48  virtual ~DtBombPSR() override;
49 
51  DtBombPSR& operator=(const DtBombPSR& orig);
52 
55  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
56 
59  virtual DtString type() const override;
60 
63  virtual void setTargetLocation(const DtVector& targetLocation);
64  virtual const DtVector& targetLocation() const;
66 
70  virtual void setTarget(const DtUUID& arget);
71 
73  virtual DtSimObjectReference target() const;
75 
78  virtual void setLaserCode(int code);
79  virtual int laserCode() const;
81 
84  virtual void setTrackingMode(DtTargetTrackingMode mode);
85  virtual DtTargetTrackingMode trackingMode() const;
87 
91  virtual void setTargetCircleCenter(const DtVector& center);
92  virtual const DtVector& targetCircleCenter() const;
94 
98  virtual void setTargetCircleRadius(const DtReal& radius);
99  virtual DtReal targetCircleRadius() const;
101 
103  static DtVrfProcessStateRepository* creator (const DtString& rwName,
104  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
105 
106 protected:
110 
114 
117 
120 
129 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwVector myTargetLocation
Target point (meters, database coordinates), only used when in DtTrackLocation mode.
Definition: bombPSR.h:109
DtRwInt myLaserCode
Code of laser being tracked, only used when in DtTrackLaserSpot mode.
Definition: bombPSR.h:116
class DtBombPSR:
Definition: bombPSR.h:34
Definition: bombPSR.h:25
Definition: readerWriterRegistry.h:39
Definition: bombPSR.h:23
Contains the DtUUID class declaration.
Definition: rwVector.h:23
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: rwSimObjectReference.h:21
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtTargetTrackingMode
Enumerations of the different tracking modes for the DtBombController.
Definition: bombPSR.h:21
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwSimObjectReference myTarget
The object name of the target being tracked, only used when in DtTrackTarget mode.
Definition: bombPSR.h:113
DtRwReal myTargetCircleRadius
The circle which encompasses the possible landing area based on the launch position &amp; altitude...
Definition: bombPSR.h:127
DtRwInt myTrackingMode
Current tracking mode (based on #DtBombTrackingMode)
Definition: bombPSR.h:119
Definition: bombPSR.h:24
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
DtRwVector myTargetCircleCenter
The circle which encompasses the possible landing area based on the launch position &amp; altitude...
Definition: bombPSR.h:126
const char int mode
Definition: ioapi.h:38
virtual DtString type() const =0
Returns the string type of the repository, as defined in psrTypes.h.
Definition: bombPSR.h:26
File: rwVector.h.
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
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)