Interface Group

    • Method Detail

      • setFaction

        void setFaction​(Faction f)
        Set the faction this group belongs to.
      • getFaction

        Faction getFaction()
        Get the faction this group belongs to.
      • allies

        java.util.Map<EntityID,​Alliance> allies()
        The alliances specific to this group. The map returned by this function contains ID objects as keys with the id of the faction that alliance references. The values are instances of class Alliance. The return value is never null.
      • setRaceNamePrefix

        void setRaceNamePrefix​(java.lang.String prefix)
        Sets the group dependent prefix for the race name.
      • getRaceNamePrefix

        java.lang.String getRaceNamePrefix()
        Returns the group dependent prefix for the race name.
      • setSortIndex

        void setSortIndex​(int index)
        Sets an index indicating how instances of class are sorted in the report.
      • getSortIndex

        int getSortIndex()
        Returns an index indicating how instances of class are sorted in the report.
      • units

        java.util.Collection<Unit> units()
        Returns an unmodifiable collection of all the units in this container.
      • getUnit

        Unit getUnit​(ID key)
        Retrieve a unit in this container by id.
      • addUnit

        void addUnit​(Unit u)
        Adds a unit to this container. This method should only be invoked by Unit.setXXX() methods.
      • removeUnit

        Unit removeUnit​(ID key)
        Removes a unit from this container. This method should only be invoked by Unit.setXXX() methods.
      • toString

        java.lang.String toString()
        Returns a String representation of this group object.
        Overrides:
        toString in class java.lang.Object