VR-Forces 4.10 Class Documentation
 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();
34 
35  virtual void processUiEvent(const DtUiElementEvent&);
36 
38 
39  virtual QString tab() const;
40  virtual QString affects() const;
41 
42  virtual void addHealthChecks();
43 };
44 
48 {
49 public:
52  virtual ~DtSystemIsValid();
53 
55  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const ;
56 
58  virtual void fix(DtComponentSystemDefinition*);
59 
61  virtual DtSystemHealthCheck* clone() const;
62 
64  virtual const char* name() const
65  {
66  return "DtSystemIsValid";
67  }
68 };
69 
70 
75 {
76 public:
79  virtual ~DtSystemCanAttack();
80 
82  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const ;
83 
85  virtual void fix(DtComponentSystemDefinition*);
86 
88  virtual DtSystemHealthCheck* clone() const;
89 
91  virtual const char* name() const
92  {
93  return "DtSystemCanAttack";
94  }
95 };
96 
101 {
102 public:
105  virtual ~DtSystemHasValidTargetType();
106 
108  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const ;
109 
111  virtual void fix(DtComponentSystemDefinition*);
112 
114  virtual DtSystemHealthCheck* clone() const;
115 
117  virtual const char* name() const
118  {
119  return "DtSystemHasValidTargetType";
120  }
121 };
122 
127 {
128 public:
131  virtual ~DtTargetTypeValid();
132 
134  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const ;
135 
137  virtual void fix(DtComponentSystemDefinition*);
138 
139  virtual DtRangeProbEntry* invalidEntry(const DtComponentSystemDefinition* system) const;
140 
142  virtual DtSystemHealthCheck* clone() const;
143 
145  virtual const char* name() const
146  {
147  return "DtTargetTypeValid";
148  }
149 };
150 
154 {
155 public:
158  virtual ~DtHasValidAmmunition();
159 
161  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const ;
162 
164  virtual void fix(DtComponentSystemDefinition*);
165 
167  virtual DtRangeProbEntry* invalidEntry(const DtComponentSystemDefinition* system) const;
168 
170  virtual DtSystemHealthCheck* clone() const;
171 
173  virtual const char* name() const
174  {
175  return "DtHasValidAmmunition";
176  }
177 };
178 
182 {
183 public:
186  virtual ~DtHasInvalidAmmunition();
187 
189  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const ;
190 
192  virtual void fix(DtComponentSystemDefinition*);
193 
195  virtual DtAmmunitionParamsEntry* invalidEntry(const DtComponentSystemDefinition* system) const;
196 
198  virtual DtSystemHealthCheck* clone() const;
199 
201  virtual const char* name() const
202  {
203  return "DtHasInvalidAmmunition";
204  }
205 };
206 
210 {
211 public:
214  virtual ~DtHasAmmunition();
215 
217  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const ;
218 
220  virtual void fix(DtComponentSystemDefinition*);
221 
223  virtual DtSystemHealthCheck* clone() const;
224 
226  virtual const char* name() const
227  {
228  return "DtHasAmmunition";
229  }
230 };
231 
235 {
236 public:
239  virtual ~DtHasApplicableTargets();
240 
242  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const ;
243 
245  virtual void fix(DtComponentSystemDefinition*);
246 
248  virtual DtSystemHealthCheck* clone() const;
249 
251  virtual const char* name() const
252  {
253  return "DtHasApplicableTargets";
254  }
255 };
256 
260 {
261 public:
264  virtual ~DtTargetPriorityCannotHit();
265 
267  virtual bool passesCheck(const DtComponentSystemDefinition*, QString& error, bool& continueOn) const ;
268 
270  virtual void fix(DtComponentSystemDefinition*);
271 
273  virtual DtAmmunitionPrioritiesListEntry* invalidEntry(const DtComponentSystemDefinition*) const;
274 
276  virtual DtSystemHealthCheck* clone() const;
277 
279  virtual const char* name() const
280  {
281  return "DtTargetPriorityCannotHit";
282  }
283 };
DtRangeProbEntry is an abstract class whose deriving classes will have one of the two forms of DtPrbD...
Definition: rangeProbEntry.h:19
virtual bool passesCheck(const DtComponentSystemDefinition *, QString &error, bool &continueOn) const =0
Implement to see if this system passes the given check.
virtual const char * name() const
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:226
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
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 void processUiEvent(const DtUiElementEvent &)
Process ui event. Default does nothing.
Definition: uiElement.h:223
virtual const char * name() const
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:201
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:177
virtual QString affects() const =0
What this affects (system or entity)
virtual const char * name() const
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:91
virtual const char * name() const
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:64
!!!!!!!!!!! DtTargetTypeValid Will check to make sure all the target types are valid.
Definition: uiWeaponSystemHealth.h:126
!!!!!!!!!!! DtTargetPriorityCannotHit Will check to see if the target priority is able to be hit by t...
Definition: uiWeaponSystemHealth.h:259
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:25
virtual void fix(DtComponentSystemDefinition *)=0
Implement to fix the issue on the given system.
virtual const char * name() const
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:251
!!!!!!!!!!! DtHasInvalidAmmunition Will check to see if there is ammunition that cannot be used again...
Definition: uiWeaponSystemHealth.h:181
virtual const char * name() const
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:279
!!!!!!!!!!! DtSystemHasValidTargetType This class will see if this system has a valid target type...
Definition: uiWeaponSystemHealth.h:100
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:74
Class that is used to define a health check.
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
virtual const char * name() const
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:145
DtAmmunitionParamsEntry; descriptor that represents members of a DtAmmunitionParams.
Definition: ammunitionParamsEntry.h:20
virtual const char * name() const
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:117
!!!!!!!!!!! DtHasApplicableTargets Returns true if this system has any applicable targets ...
Definition: uiWeaponSystemHealth.h:234
!!!!!!!!!!! DtHasAmmunition Returns true if this system has any ammunition
Definition: uiWeaponSystemHealth.h:209
The DtUiElement class is the base for which all UI elements are defined.
Definition: uiElement.h:95
Definition: ammunitionPrioritiesListEntry.h:26
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
virtual const char * name() const
Internal name that can be used to map to ui file to disallow inclusion of this rule.
Definition: uiWeaponSystemHealth.h:173
!!!!!!!!!!! DtHasValidAmmunition Will check to make sure that the system has ammunition valid to targ...
Definition: uiWeaponSystemHealth.h:153
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:32
Base class of the ui element class chain.
Definition: uiElement.h:172
virtual QString tab() const =0
Which tab to show the warning icon on.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)