VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiDamageSystemHealth.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 ~DtUiDamageSystemHealth() 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 ~DtCanBeDamaged() 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 "DtCanBeDamaged";
66  }
67 };
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: uiDamageSystemHealth.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 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 QString affects() const =0
What this affects (system or entity)
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:27
virtual void fix(DtComponentSystemDefinition *)=0
Implement to fix the issue on the given system.
virtual DtHealthCheck * clone() const =0
Clone this object.
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
Definition: ammunitionParamsEntry.h:24
This UI element will inspect the damage system and instruct the user on what they can fix about it if...
Definition: uiDamageSystemHealth.h:25
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
!!!!!!!!!!! DtCanBeDamaged Returns true if this system can be damaged
Definition: uiDamageSystemHealth.h:47
#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)