Interface IAldermanOffice

  • All Known Implementing Classes:
    AldermanOffice

    public interface IAldermanOffice
    Office of the alderman. The alderman can order hanseatic days or a player can take a task to fulfill should he have sufficient reputation.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2014 Created on Dec 31, 2014
    • Method Detail

      • getTasks

        java.util.List<IAldermanTask> getTasks()
        Retrieve the list of available tasks.
        Returns:
        list of alderman tasks
      • getViolation

        java.util.Optional<ICityViolation> getViolation()
        Get the current violation. As there might be non this might be absent.
        Returns:
        optional city violation, empty if there is none.
      • addTask

        void addTask​(IAldermanTask task,
                     java.time.LocalDateTime limit,
                     IPlayer player)
        Add a new task that is currently worked on.
        Parameters:
        limit - time limit until when the task has to be completed
        task - that is to be fullfiled.
        player - who is working on the task
      • finished

        void finished​(IAldermanTask task)
        Task is finished, so remove it from the list.
        Parameters:
        task - completed task
      • getWorkedOnTasks

        java.util.List<IAcceptedAldermanTask> getWorkedOnTasks()
        Retrieve the tasks that are currently worked on.
        Returns:
        list of accepted alderman tasks