![]() |
VR-Forces 4.8 Class Documentation
|
Class that is used to define a health check. More...

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 DtHealthCheck * | clone () const =0 |
| Clone this object. More... | |
| virtual const char * | name () 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::DtDe & | myDe |
| DtUiHealthCheck * | myParent |
Class that is used to define a health check.
Return true if passes, and, if false implement the fix() method to fix the issue
| DtSystemHealthCheck::DtSystemHealthCheck | ( | makVrv::DtDe & | de, |
| DtUiHealthCheck * | |||
| ) |
| DtSystemHealthCheck::DtSystemHealthCheck | ( | const DtSystemHealthCheck & | ) |
|
virtual |
|
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.
|
pure virtual |
Implement to fix the issue on the given system.
Implemented in DtTargetPriorityCannotHit, DtHasApplicableTargets, DtHasAmmunition, DtHasInvalidAmmunition, DtHasValidAmmunition, DtTargetTypeValid, DtSystemHasValidTargetType, DtSystemCanAttack, DtCanBeDamaged, and DtSystemIsValid.