The common base class for concrete map checkers. More...

Public Member Functions | |
| MapCheckerT (MapDocumentT &MapDoc, IntrusivePtrT< CompMapEntityT > Ent) | |
| The constructor. More... | |
| virtual | ~MapCheckerT () |
| The virtual destructor. More... | |
| IntrusivePtrT< CompMapEntityT > | GetEnt () const |
| Returns the entity that this checker is assigned to. More... | |
| virtual bool | HasProblem () const |
| Returns whether this map checker has actually identified a problem with the entity it is assigned to. More... | |
| virtual bool | CanFix () const |
| Returns whether this checker is able to provide a fix the problem (some problems can only be detected, but not fixed). More... | |
| virtual CommandT * | GetFix () const |
| Returns a command that fixes the problem, if possible (that is, when HasProblem() and CanFix() returns true). Returns NULL otherwise. More... | |
| virtual wxString | GetInfo () const |
| Returns a brief information about the nature of the problem. More... | |
| virtual wxString | GetHelpText () const |
| Returns a longer help text about the details of the problem and how it can be fixed. More... | |
Protected Attributes | |
| MapDocumentT & | m_MapDoc |
| IntrusivePtrT< CompMapEntityT > | m_Ent |
The common base class for concrete map checkers.
|
inline |
The constructor.
|
inlinevirtual |
The virtual destructor.
|
inlinevirtual |
Returns whether this checker is able to provide a fix the problem (some problems can only be detected, but not fixed).
|
inline |
Returns the entity that this checker is assigned to.
|
inlinevirtual |
Returns a command that fixes the problem, if possible (that is, when HasProblem() and CanFix() returns true). Returns NULL otherwise.
|
inlinevirtual |
Returns a longer help text about the details of the problem and how it can be fixed.
Reimplemented in MC_WorldHasPlayerPrototypeT, and MC_WorldHasPlayerStartT.
|
inlinevirtual |
Returns a brief information about the nature of the problem.
Reimplemented in MC_WorldHasPlayerPrototypeT, and MC_WorldHasPlayerStartT.
|
inlinevirtual |
Returns whether this map checker has actually identified a problem with the entity it is assigned to.
When false, there either never was a problem in the first place, or it has been fixed already.
Reimplemented in MC_WorldHasPlayerPrototypeT, and MC_WorldHasPlayerStartT.