Class MagellanBuildingImpl

    • Constructor Detail

      • MagellanBuildingImpl

        public MagellanBuildingImpl​(EntityID id,
                                    GameData data)
        Creates the Object for a building.
    • Method Detail

      • getSize

        public int getSize()
        Returns the size of the building
        Specified by:
        getSize in interface Building
        the size of the building.
      • setSize

        public void setSize​(int iSize)
        Sets the size of the building
        Specified by:
        setSize in interface Building
        iSize - set the size of the building.
      • getCost

        public int getCost()
        Returns the costs for this building.
        Specified by:
        getCost in interface Building
        the cost of the building.
      • setCost

        public void setCost​(int iCost)
        Sets the costs for this building.
        Specified by:
        setCost in interface Building
        iCost - set the cost for the building.
      • setRegion

        public 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 Building
        Specified by:
        setRegion in interface HasRegion
        region - the region to the the building into.
      • getBuildingType

        public BuildingType getBuildingType()
        Returns the BuildingType of this building.
        Specified by:
        getBuildingType in interface Building
        the BuildingType of this building
      • getRegion

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

        public void setTrueBuildingType​(java.lang.String trueBuildingType)
        Sets the trueBuildingType which is not really a type but just a String only occurrence now "Traumschl÷▀chen",wahrerTyp Fiete 20060910
        Specified by:
        setTrueBuildingType in interface Building
        trueBuildingType - as string
      • getTrueBuildingType

        public java.lang.String getTrueBuildingType()
        Gets the trueBuildingType which es not realy a type but just a String only occurrence now "Traumschl÷▀chen",wahrerTyp Fiete 20060910
        Specified by:
        getTrueBuildingType in interface Building
        String = trueBuildingType
      • getBesiegers

        public int getBesiegers()
        Specified by:
        getBesiegers in interface Building
        the number of persons besieging the building
      • setBesiegers

        public void setBesiegers​(int number)
        Description copied from interface: Building
        Changes the number of persons besieging the building
        Specified by:
        setBesiegers in interface Building
      • addBesiegerUnit

        public void addBesiegerUnit​(UnitID besieger)
        Description copied from interface: Building
        Add a besieging unit.
        Specified by:
        addBesiegerUnit in interface Building
      • setBesiegerUnits

        public void setBesiegerUnits​(java.util.Collection<UnitID> besiegers)
        Description copied from interface: Building
        Removes all besieging units.
        Specified by:
        setBesiegerUnits in interface Building
      • getBesiegerUnits

        public java.util.Collection<UnitID> getBesiegerUnits()
        Specified by:
        getBesiegerUnits in interface Building
        a collection of all besieging units or null if no besiegers are known