Interface TempUnit

    • Method Detail

      • setParent

        void setParent​(Unit u)
        Assigns this temp unit a parent unit.
      • getParent

        Unit getParent()
        Returns the parent of this temp unit. If this is not a temp unit, null is returned.
      • toString

        java.lang.String toString​(boolean withName)
        Returns a string representation of this temporary unit.
        Specified by:
        toString in interface Unit
      • setTempRace

        void setTempRace​(Race r)
        If the temp unit has a different race than the parent unit, set it here.