VR-Engage  2.3
Loading...
Searching...
No Matches
topAndDirectLauncherPSR.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*******************************************************************************/
5
6//! \file topAndDirectLauncherPSR.h
7//! \ingroup vreVrfobjcore
8//! \brief Javelin launcher process state repository for VREngage
9//!
10//! This file defines the DtJavelinLauncherPSR class, which provides a process state repository
11//! for Javelin missile launcher components in VREngage. It maintains the attack mode state
12//! (top attack or direct attack) for a Javelin missile launcher.
13
14//! Maintains the attack mode state (top attack or direct attack) for a missile launcher.
15
16#pragma once
17
18#include "vreVrfObjcore/export.h"
19
20#include <vrfobjcore/vrfWeaponPSR.h>
21
22// Forward declarations
23
24namespace makVre
25{
26const char DtTopAndDirectLauncherPSRType[] = "top-and-direct-launcher-PSR";
27
28class VREVRFOBJCORE_DLL DtTopAndDirectLauncherPSR : public DtVrfWeaponPSR
29{
30protected:
31 //! \brief Default constructor (not implemented)
32 //!
33 //! Default constructor is protected and not implemented to prevent
34 //! creation of instances without proper initialization.
36
37public:
38 //! \brief Constructor with VRF object and optional name
39 //! \param vrfObject Pointer to the local object this PSR is associated with
40 //! \param rwName Optional reader/writer name
41 //! \param parentRegistry Optional parent registry for reader/writer functionality
42 //!
43 //! Creates a new Javelin launcher PSR for the specified VRF object.
44 DtTopAndDirectLauncherPSR(DtLocalObject* vrfObject, const DtString& rwName = DtString::nullString(),
45 DtReaderWriterRegistry* parentRegistry = 0);
46
47 DtTopAndDirectLauncherPSR(const DtTopAndDirectLauncherPSR& orig, const DtString& rwName = DtString::nullString(),
48 DtReaderWriterRegistry* parentRegistry = 0);
49
51
52 virtual ~DtTopAndDirectLauncherPSR() override;
53
54 //! \brief Creates a clone of this PSR
55 //! \param rwName Optional reader/writer name for the clone
56 //! \param parentRegistry Optional parent registry for reader/writer functionality
57 //! \return Pointer to a new PSR that is a clone of this one
58 //!
59 //! Creates a new Javelin launcher PSR as a deep copy of this one.
60 virtual DtVrfProcessStateRepository* clone(const DtString& rwName = DtString::nullString(),
61 DtReaderWriterRegistry* parentRegistry = 0) const override;
62
63 //! Returns the string type of the repository, DtTopAndDirectLauncherPSRType.
64 virtual DtString type() const override;
65
66 // Accessor/mutator for launcher attack mode.
67 virtual void setMissileFlightMode(const DtString& mode);
68
69 //! \brief Gets the missile flight mode
70 //! \return String identifying the current flight mode ("top" or "direct")
71 //!
72 //! Returns the current flight mode setting for Javelin missiles launched from this weapon.
73 virtual DtString missileFlightMode() const;
74
75 //! \brief Sets the launcher target mode
76 //! \param mode String identifying the target mode
77 //!
78 //! Sets the targeting mode for the launcher.
79 virtual void setLauncherTargetMode(const DtString& mode);
80
81 //! \brief Gets the launcher target mode
82 //! \return String identifying the current target mode
83 //!
84 //! Returns the current target mode setting for the launcher.
85 virtual DtString launcherTargetMode() const;
86
87 //! \brief Sets the launcher fire-and-forget capability
88 //! \param fireAndForget Boolean indicating if launcher supports fire-and-forget mode
89 //!
90 //! Sets whether the launcher operates in fire-and-forget mode.
91 virtual void setLauncherFireAndForget(bool fireAndForget);
92
93 //! \brief Gets the launcher fire-and-forget capability
94 //! \return Boolean indicating if launcher supports fire-and-forget mode
95 //!
96 //! Returns whether the launcher operates in fire-and-forget mode.
97 virtual bool launcherFireAndForget() const;
98
99 //! Create an instance of a DtTopAndDirectLauncherPSR
100 static DtVrfProcessStateRepository* creator(
101 const DtString& name, DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
102
103protected:
104 //! \brief The missile flight mode setting
105 //!
106 //! Stores the current flight mode for Javelin missiles launched from this weapon.
107 //! Valid values are "top" for top attack mode and "direct" for direct attack mode.
109
110 //! \brief The launcher target mode setting
111 //!
112 //! Stores the current target mode for the launcher.
114
115 //! \brief The launcher fire-and-forget capability
116 //!
117 //! Indicates whether the launcher operates in fire-and-forget mode.
119};
120} // namespace makVre
DtRwString myMissileFlightMode
The missile flight mode setting.
Definition topAndDirectLauncherPSR.h:108
DtRwBoolean myLauncherFireAndForget
The launcher fire-and-forget capability.
Definition topAndDirectLauncherPSR.h:118
DtTopAndDirectLauncherPSR(const DtTopAndDirectLauncherPSR &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
virtual void setLauncherTargetMode(const DtString &mode)
Sets the launcher target mode.
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const override
Creates a clone of this PSR.
virtual bool launcherFireAndForget() const
Gets the launcher fire-and-forget capability.
virtual void setLauncherFireAndForget(bool fireAndForget)
Sets the launcher fire-and-forget capability.
virtual DtString missileFlightMode() const
Gets the missile flight mode.
DtRwString myLauncherTargetMode
The launcher target mode setting.
Definition topAndDirectLauncherPSR.h:113
virtual ~DtTopAndDirectLauncherPSR() override
virtual DtString type() const override
Returns the string type of the repository, DtTopAndDirectLauncherPSRType.
const DtTopAndDirectLauncherPSR & operator=(const DtTopAndDirectLauncherPSR &orig)
DtTopAndDirectLauncherPSR()
Default constructor (not implemented)
virtual void setMissileFlightMode(const DtString &mode)
DtTopAndDirectLauncherPSR(DtLocalObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
Constructor with VRF object and optional name.
static DtVrfProcessStateRepository * creator(const DtString &name, DtLocalObject *vrfObject, DtReaderWriterRegistry *parentRegistry)
Create an instance of a DtTopAndDirectLauncherPSR.
virtual DtString launcherTargetMode() const
Gets the launcher target mode.
#define VREVRFOBJCORE_DLL
Platform-specific DLL export/import declaration.
Definition export.h:27
!
Definition glsVreMessageUtil.h:50
const char DtTopAndDirectLauncherPSRType[]
Definition topAndDirectLauncherPSR.h:26