Class EntityVerifier

java.lang.Object
megamek.common.verifier.EntityVerifier
All Implemented Interfaces:
MekSummaryCache.Listener

public class EntityVerifier extends Object implements 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 Details

  • Method Details

    • getInstance

      public static EntityVerifier getInstance(File config)
      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

      public boolean checkEntity(Entity entity, String fileString, boolean verbose)
    • checkEntity

      public boolean checkEntity(Entity entity, String fileString, boolean verbose, int ammoTechLvl)
    • checkEntity

      public boolean checkEntity(Entity entity, String fileString, boolean verbose, int ammoTechLvl, boolean failsOnly)
    • loadEntity

      public Entity loadEntity(File f, String entityName)
    • doneLoading

      public void doneLoading()
      Specified by:
      doneLoading in interface MekSummaryCache.Listener
    • main

      public static void main(String[] args)