Class CRParser.UnitParseState

    • Field Summary

      Fields 
      Modifier and Type Field Description
      EntityID factionID
      The unit's factionID if it has been read.
      ID groupID
      The unit's groupID if it has been read.
      Unit unit
      The new unit object.
    • Constructor Summary

      Constructors 
      Constructor Description
      UnitParseState​(Unit unit, int base)
      Initializes the parser.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getBase()  
      java.lang.Object getBean()
      The bean that is modified by the handler.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • unit

        public Unit unit
        The new unit object.
      • factionID

        public EntityID factionID
        The unit's factionID if it has been read.
      • groupID

        public ID groupID
        The unit's groupID if it has been read.
    • Constructor Detail

      • UnitParseState

        public UnitParseState​(Unit unit,
                              int base)
        Initializes the parser.
        Parameters:
        unit - The new unit
        base - The report base, see GameData.base.