Interface Building

    • Method Detail

      • getSize

        int getSize()
        DOCUMENT ME!
        Returns:
        the size of the building.
      • setSize

        void setSize​(int iSize)
        DOCUMENT ME!
        Parameters:
        iSize - set the size of the building.
      • getCost

        int getCost()
        DOCUMENT ME!
        Returns:
        the cost of the building.
      • setCost

        void setCost​(int iCost)
        DOCUMENT ME!
        Parameters:
        iCost - set the cost for the building.
      • setRegion

        void setRegion​(Region region)
        Sets the region this building is in. If this building already has a region set, this method takes care of removing it from that region.
        Specified by:
        setRegion in interface HasRegion
        Parameters:
        region - the region to the the building into.
      • getBuildingType

        BuildingType getBuildingType()
        Returns the BuildingType of this building.
        Returns:
        the BuildingType of this building
      • getRegion

        Region getRegion()
        Get the region where this building is located.
        Specified by:
        getRegion in interface HasRegion
        Returns:
        the region the building is in.
      • setTrueBuildingType

        void setTrueBuildingType​(java.lang.String trueBuildingType)
        Sets the trueBuildingType which es not realy a type but just a String only occurance now "Traumschl÷▀chen",wahrerTyp Fiete 20060910
        Parameters:
        trueBuildingType - as string
      • getTrueBuildingType

        java.lang.String getTrueBuildingType()
        Gets the trueBuildingType which es not realy a type but just a String only occurance now "Traumschl÷▀chen",wahrerTyp Fiete 20060910
        Returns:
        String = trueBuildingType
      • toString

        java.lang.String toString()
        Returns a String representation of the Building object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the Building object as string.
      • getBesiegers

        int getBesiegers()
        Returns:
        the number of persons besieging the building
      • setBesiegers

        void setBesiegers​(int number)
        Changes the number of persons besieging the building
      • addBesiegerUnit

        void addBesiegerUnit​(UnitID besieger)
        Add a besieging unit.
        Parameters:
        besieger -
      • setBesiegerUnits

        void setBesiegerUnits​(java.util.Collection<UnitID> besiegers)
        Removes all besieging units.
      • getBesiegerUnits

        java.util.Collection<UnitID> getBesiegerUnits()
        Returns:
        a collection of all besieging units or null if no besiegers are known