VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiWeaponSystemHealth.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <readerWriter/rwInt.h>
15 #include <readerWriter/rwReal.h>
16 
17 #include <matrix/vlVector.h>
18 
19 class DtRangeProbEntry;
22 
26 {
27 public:
28 
31 
33  virtual ~DtUiWeaponSystemHealth() override;
34 
35  virtual void processUiEvent(const DtUiElementEvent&) override;
36 
38 
39  virtual QString tab() const override;
40  virtual QString affects() const override;
41 
42  virtual void addHealthChecks() override;
43 };
44 
48 {
49 public:
52  virtual ~DtSystemIsValid() override;
53 
55  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const override;
56 
58  virtual void fix(DtComponentSystemDefinition*) override;
59 
61  virtual DtSystemHealthCheck* clone() const override;
62 
64  virtual const char* name() const override {
65  return "DtSystemIsValid";
66  }
67 };
68 
69 
74 {
75 public:
78  virtual ~DtSystemCanAttack() override;
79 
81  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const override;
82 
84  virtual void fix(DtComponentSystemDefinition*) override;
85 
87  virtual DtSystemHealthCheck* clone() const override;
88 
90  virtual const char* name() const override {
91  return "DtSystemCanAttack";
92  }
93 };
94 
99 {
100 public:
103  virtual ~DtSystemHasValidTargetType() override;
104 
106  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const override;
107 
109  virtual void fix(DtComponentSystemDefinition*) override;
110 
112  virtual DtSystemHealthCheck* clone() const override;
113 
115  virtual const char* name() const override {
116  return "DtSystemHasValidTargetType";
117  }
118 };
119 
124 {
125 public:
128  virtual ~DtTargetTypeValid() override;
129 
131  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const override;
132 
134  virtual void fix(DtComponentSystemDefinition*) override;
135 
136  virtual DtRangeProbEntry* invalidEntry(const DtComponentSystemDefinition* system) const;
137 
139  virtual DtSystemHealthCheck* clone() const override;
140 
142  virtual const char* name() const override {
143  return "DtTargetTypeValid";
144  }
145 };
146 
150 {
151 public:
154  virtual ~DtHasValidAmmunition() override;
155 
157  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const override;
158 
160  virtual void fix(DtComponentSystemDefinition*) override;
161 
163  virtual DtRangeProbEntry* invalidEntry(const DtComponentSystemDefinition* system) const;
164 
166  virtual DtSystemHealthCheck* clone() const override;
167 
169  virtual const char* name() const override {
170  return "DtHasValidAmmunition";
171  }
172 };
173 
177 {
178 public:
181  virtual ~DtHasInvalidAmmunition() override;
182 
184  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const override;
185 
187  virtual void fix(DtComponentSystemDefinition*) override;
188 
190  virtual DtAmmunitionParamsEntry* invalidEntry(const DtComponentSystemDefinition* system) const;
191 
193  virtual DtSystemHealthCheck* clone() const override;
194 
196  virtual const char* name() const override {
197  return "DtHasInvalidAmmunition";
198  }
199 };
200 
204 {
205 public:
208  virtual ~DtHasAmmunition() override;
209 
211  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const override;
212 
214  virtual void fix(DtComponentSystemDefinition*) override;
215 
217  virtual DtSystemHealthCheck* clone() const override;
218 
220  virtual const char* name() const override {
221  return "DtHasAmmunition";
222  }
223 };
224 
228 {
229 public:
232  virtual ~DtHasApplicableTargets() override;
233 
235  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const override;
236 
238  virtual void fix(DtComponentSystemDefinition*) override;
239 
241  virtual DtSystemHealthCheck* clone() const override;
242 
244  virtual const char* name() const override {
245  return "DtHasApplicableTargets";
246  }
247 };
248 
252 {
253 public:
256  virtual ~DtTargetPriorityCannotHit() override;
257 
259  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const override;
260 
262  virtual void fix(DtComponentSystemDefinition*) override;
263 
265  virtual DtAmmunitionPrioritiesListEntry* invalidEntry(const DtComponentSystemDefinition*) const;
266 
268  virtual DtSystemHealthCheck* clone() const override;
269 
271  virtual const char* name() const override {
272  return "DtTargetPriorityCannotHit";
273  }
274 };
DtRangeProbEntry is an abstract class whose deriving classes will have one of the two forms of DtPrbD...
Definition: rangeProbEntry.h:19
virtual const char * name() const override
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:64
virtual bool passesCheck(const DtComponentSystemDefinition *, QString &error, bool &continueOn) const =0
Implement to see if this system passes the given check. If continueOn is set to false no further chec...
virtual void addHealthChecks()=0
This UI element will provide basical functionality for allowing a system to define rules that can det...
Definition: uiSystemHealth.h:37
virtual const char * name() const override
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:220
virtual const char * name() const override
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:142
This UI element will inspect the weapon system and instruct the user on what they can fix about it if...
Definition: uiWeaponSystemHealth.h:25
virtual const char * name() const override
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:271
virtual void processUiEvent(const DtUiElementEvent &)
Process ui event. Default does nothing.
Definition: uiElement.h:236
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:190
virtual const char * name() const override
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:90
virtual QString affects() const =0
What this affects (system or entity)
virtual const char * name() const override
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:169
virtual const char * name() const override
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:244
!!!!!!!!!!! DtTargetTypeValid Will check to make sure all the target types are valid. If there is not one valid target type will report that. When fixed will move onto the next one
Definition: uiWeaponSystemHealth.h:123
virtual const char * name() const override
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:115
!!!!!!!!!!! DtTargetPriorityCannotHit Will check to see if the target priority is able to be hit by t...
Definition: uiWeaponSystemHealth.h:251
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:27
virtual void fix(DtComponentSystemDefinition *)=0
Implement to fix the issue on the given system.
!!!!!!!!!!! DtHasInvalidAmmunition Will check to see if there is ammunition that cannot be used again...
Definition: uiWeaponSystemHealth.h:176
!!!!!!!!!!! DtSystemHasValidTargetType This class will see if this system has a valid target type...
Definition: uiWeaponSystemHealth.h:98
virtual DtHealthCheck * clone() const =0
Clone this object.
!!!!!!!!!!! DtSystemCanAttack This class will see if this system can target and fire on that target...
Definition: uiWeaponSystemHealth.h:73
Class that is used to define a health check. Return true if passes, and, if false implement the fix()...
Definition: uiSystemHealth.h:19
Definition: asyncJobServer.h:39
!!!!!!!!!!! DtSystemIsValid This will check to see if this system is valid to be edited as a new hit/...
Definition: uiWeaponSystemHealth.h:47
Definition: ammunitionParamsEntry.h:24
!!!!!!!!!!! DtHasApplicableTargets Returns true if this system has any applicable targets ...
Definition: uiWeaponSystemHealth.h:227
!!!!!!!!!!! DtHasAmmunition Returns true if this system has any ammunition
Definition: uiWeaponSystemHealth.h:203
The DtUiElement class is the base for which all UI elements are defined. If you wish to create a new ...
Definition: uiElement.h:97
Definition: ammunitionPrioritiesListEntry.h:26
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
virtual const char * name() const override
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:196
!!!!!!!!!!! DtHasValidAmmunition Will check to make sure that the system has ammunition valid to targ...
Definition: uiWeaponSystemHealth.h:149
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
Base class of the ui element class chain. Properties available through designer for all ui elements a...
Definition: uiElement.h:185
virtual QString tab() const =0
Which tab to show the warning icon on.

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)