![]() |
VR-Forces Developer's Guide
|
Class that is used to define a health check. Return true if passes, and, if false implement the fix() method to fix the issue.

Public Member Functions | |
| DtSystemHealthCheck (makVrv::DtDe &de, DtUiHealthCheck *) | |
| DtSystemHealthCheck (const DtSystemHealthCheck &) | |
| virtual | ~DtSystemHealthCheck () override |
| virtual bool | passesCheck (const DtComponentSystemDefinition *, QString &error, bool &continueOn) const =0 |
| virtual void | fix (DtComponentSystemDefinition *)=0 |
Public Member Functions inherited from DtHealthCheck | |
| DtHealthCheck (makVrv::DtDe &de, DtUiHealthCheck *) | |
| DtHealthCheck (const DtHealthCheck &) | |
| virtual | ~DtHealthCheck () |
| virtual DtHealthCheck * | clone () const =0 |
| virtual const char * | name () const =0 |
| virtual void | attemptHealthFix (const QString &) |
Additional Inherited Members | |
Protected Attributes inherited from DtHealthCheck | |
| makVrv::DtDe & | myDe |
| DtUiHealthCheck * | myParent |
| DtSystemHealthCheck::DtSystemHealthCheck | ( | makVrv::DtDe & | de, |
| DtUiHealthCheck * | |||
| ) |
| DtSystemHealthCheck::DtSystemHealthCheck | ( | const DtSystemHealthCheck & | ) |
|
overridevirtual |
|
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.