VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
DtSystemHealthCheck Class Referenceabstract

Class that is used to define a health check. More...

Inheritance diagram for DtSystemHealthCheck:
Inheritance graph
[legend]

Public Member Functions

 DtSystemHealthCheck (makVrv::DtDe &de, DtUiHealthCheck *)
 
 DtSystemHealthCheck (const DtSystemHealthCheck &)
 
virtual ~DtSystemHealthCheck ()
 
virtual bool passesCheck (const DtComponentSystemDefinition *, QString &error, bool &continueOn) const =0
 Implement to see if this system passes the given check. More...
 
virtual void fix (DtComponentSystemDefinition *)=0
 Implement to fix the issue on the given system. More...
 
- Public Member Functions inherited from DtHealthCheck
 DtHealthCheck (makVrv::DtDe &de, DtUiHealthCheck *)
 
 DtHealthCheck (const DtHealthCheck &)
 
virtual ~DtHealthCheck ()
 
virtual DtHealthCheckclone () const =0
 Clone this object. More...
 
virtual const charname () const =0
 Internal name that can be used to map to ui file to disallow inclusion of this rule. More...
 
virtual void attemptHealthFix (const QString &)
 

Additional Inherited Members

- Protected Attributes inherited from DtHealthCheck
makVrv::DtDemyDe
 
DtUiHealthCheckmyParent
 

Detailed Description

Class that is used to define a health check.

Return true if passes, and, if false implement the fix() method to fix the issue

Constructor & Destructor Documentation

DtSystemHealthCheck::DtSystemHealthCheck ( makVrv::DtDe de,
DtUiHealthCheck  
)
DtSystemHealthCheck::DtSystemHealthCheck ( const DtSystemHealthCheck )
virtual DtSystemHealthCheck::~DtSystemHealthCheck ( )
virtual

Member Function Documentation

virtual bool DtSystemHealthCheck::passesCheck ( const DtComponentSystemDefinition ,
QString &  error,
bool continueOn 
) const
pure virtual

Implement to see if this system passes the given check.

If continueOn is set to false no further checks will be made

Implemented in DtTargetPriorityCannotHit, DtHasApplicableTargets, DtHasAmmunition, DtHasInvalidAmmunition, DtHasValidAmmunition, DtTargetTypeValid, DtSystemHasValidTargetType, DtSystemCanAttack, DtCanBeDamaged, and DtSystemIsValid.

virtual void DtSystemHealthCheck::fix ( DtComponentSystemDefinition )
pure virtual

The documentation for this class was generated from the following file:

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)