Interface IFactionHandler


  • public interface IFactionHandler
    Handles creation, deletion, and retrieval of factions.
    • Method Detail

      • list

        List<IFaction> list()
        Returns all registered factions.
        Returns:
        a list of factions.
      • delete

        IFaction delete​(int id)
        Deletes the faction with the given ID.
        Parameters:
        id - the faction ID.
        Returns:
        the deleted faction, or null if not found.
      • create

        IFaction create​(String name,
                        int defaultPoints)
        Creates a new faction with the given name and default points.
        Parameters:
        name - the faction name.
        defaultPoints - the default standing points for new players.
        Returns:
        the created faction.
      • get

        IFaction get​(int id)
        Returns the faction with the given ID.
        Parameters:
        id - the faction ID.
        Returns:
        the faction, or null if not found.