Package megamek.common.verifier
Class EntityVerifier
java.lang.Object
megamek.common.verifier.EntityVerifier
- All Implemented Interfaces:
MekSummaryCache.Listener
Performs verification of the validity of different types of
Entity subclasses. Most of the actual validation is performed
by TestEntity and its subclasses.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckEntity(Entity entity, String fileString, boolean verbose) booleancheckEntity(Entity entity, String fileString, boolean verbose, int ammoTechLvl) booleancheckEntity(Entity entity, String fileString, boolean verbose, int ammoTechLvl, boolean failsOnly) voidstatic EntityVerifiergetInstance(File config) Creates and return a new instance of EntityVerifier.loadEntity(File f, String entityName) static void
-
Field Details
-
CONFIG_FILENAME
- See Also:
-
mekOption
-
protomekOption
-
tankOption
-
aeroOption
-
baOption
-
infOption
-
-
Method Details
-
getInstance
Creates and return a new instance of EntityVerifier.- Parameters:
config- a File that contains an XML representation of the configuration settings- Returns:
- an EntityVerifier with the configuration loaded from XML
-
checkEntity
-
checkEntity
-
checkEntity
-
loadEntity
-
doneLoading
public void doneLoading()- Specified by:
doneLoadingin interfaceMekSummaryCache.Listener
-
main
-