Class UnitDefTable

java.lang.Object
armyc2.c2sd.renderer.utilities.UnitDefTable

public class UnitDefTable extends Object
  • Method Details

    • getInstance

      public static UnitDefTable getInstance()
    • init

      public void init(Context context)
    • getUnitDef

      public UnitDef getUnitDef(String basicSymbolID, int symStd)
      Parameters:
      basicSymbolID - - IN - A 15 character MilStd code
      Returns:
      SymbolDef whose Symbol Id matches what is passed in
    • getAllUnitDefs

      public Map<String,UnitDef> getAllUnitDefs(int symStd)
      Returns:
    • getUnitDefDups

      public ArrayList<UnitDef> getUnitDefDups(int symStd)
      SymbolIDs are no longer unique thanks to 2525C and some EMS symbols. Here are the EMS symbols that reused symbol IDs. Like how EMS.INCDNT.CVDIS.DISPOP uses the same symbol code as STBOPS.ITM.RFG (O*I*R-----*****)
      Parameters:
      symStd -
      Returns:
    • hasUnitDef

      public Boolean hasUnitDef(String basicSymbolID, int symStd)
      Parameters:
      basicSymbolID -
      Returns: