VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
missileDistractionPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include "vrfobjcore/simObject.h"
14 #include <readerWriter/rwBoolean.h>
15 #include "vrfutil/rwStringList.h"
16 #include <set>
17 #include <vrfutil/rwUUID.h>
18 
23 
26 {
27 public:
28 
31  const DtString& rwName = DtString::nullString(),
32  DtReaderWriterRegistry* parentRegistry = 0);
33 
36  const DtString& rwName = DtString::nullString(),
37  DtReaderWriterRegistry* parentRegistry = 0);
38 
40  virtual ~DtMissileDistractionPSR() override;
41 
44 
47  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
48 
50  virtual DtString type() const override;
51 
53  virtual bool init() override;
54 
57  virtual void setAmDistracted(bool fooled);
58  virtual bool amDistracted() const;
59 
62  virtual const DtRwSimObjectReferenceList& verifiedDistractionsList() const;
63 
65  virtual bool findCounterMeasure(const DtUUID &) const;
66 
67  virtual void addCounterMeasure(const DtUUID&);
68 
69  virtual void removeCounterMeasure(const DtUUID&);
70 
72  virtual void clearVerifiedDistractionsList();
73 
74 public:
75 
77  static DtVrfProcessStateRepository* creator (const DtString& rwName,
78  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
79 
80 
81 protected:
82 
88 };
89 
UUID is a unique ID wrapper class.
Definition: uuid.h:59
If you use a list of object names to archive which objects are part of a controller (or any object) u...
Definition: simObjectReferenceList.h:120
DtRwBoolean myAmDistracted
Keep track if the missile has been distracted and has retargeted. If this is the case, we don&#39;t need to keep evaluateing the other countermeasures. We&#39;ve already been fooled.
Definition: missileDistractionPSR.h:86
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwSimObjectReferenceList myDistractionsList
Definition: missileDistractionPSR.h:87
virtual bool init()
Used for virtual construction. This base method simply returns true.
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
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
virtual DtString type() const =0
Returns the string type of the repository, as defined in psrTypes.h.
class DtMissileDistractionPSR:
Definition: missileDistractionPSR.h:25
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)