Interface ZeroUnit

    • Method Detail

      • setRegion

        void setRegion​(Region r)
        Sets the region of this unit
        Specified by:
        setRegion in interface HasRegion
        Specified by:
        setRegion in interface Unit
        Parameters:
        r - the region of this unit
      • getPersons

        int getPersons()
        Returns the amount of recruitable persons
        Specified by:
        getPersons in interface Unit
        Returns:
        amount of recruitable persons
      • getModifiedPersons

        int getModifiedPersons()
        Returns the amount of recruitable persons - recruited persons
        Specified by:
        getModifiedPersons in interface Unit
        Returns:
        amount of recruitable persons - recruited persons
      • getGivenPersons

        int getGivenPersons()
        Delivers the number of persons given to region via command "GIVE 0 x PERSONS".
      • toString

        java.lang.String toString()
        Returns a string representation of this temporary unit.
        Specified by:
        toString in interface Unit
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of this temporary unit