VR-Forces 5.0.3 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();
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 ~DtCanBeDamaged();
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 "DtCanBeDamaged";
67  }
68 };
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
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:231
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:185
virtual QString affects() const =0
What this affects (system or entity)
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:25
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
DtAmmunitionParamsEntry; descriptor that represents members of a DtAmmunitionParams.
Definition: ammunitionParamsEntry.h:20
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:70
!!!!!!!!!!! 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:180
virtual QString tab() const =0
Which tab to show the warning icon on.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)