Interface IBuildingWorkerView

All Superinterfaces:
IBuildingView, ICommonBuilding, IModuleContainerView, IRequester

public interface IBuildingWorkerView extends IBuildingView
  • Method Details

    • getWorkerId

      List<Integer> getWorkerId()
      Returns the id of the worker.
      Returns:
      0 if there is no worker else the correct citizen id.
    • addWorkerId

      void addWorkerId(int workerId)
      Sets the id of the worker.
      Parameters:
      workerId - the id to set.
    • getPrimarySkill

      @NotNull @NotNull Skill getPrimarySkill()
      Primary skill getter.
      Returns:
      the primary skill.
    • getSecondarySkill

      @NotNull @NotNull Skill getSecondarySkill()
      Secondary skill getter.
      Returns:
      the secondary skill.
    • removeWorkerId

      void removeWorkerId(int id)
      Remove a worker from the list.
      Parameters:
      id - the id to remove.
    • hasEnoughWorkers

      boolean hasEnoughWorkers()
      Check if it has enough worker.
      Returns:
      true if so.
    • setHiringMode

      void setHiringMode(HiringMode hiringMode)
      Set the hiring mode and sync to the server.
      Parameters:
      hiringMode - the mode to set.
    • getJobName

      String getJobName()
      Get the name of the job.
      Returns:
      job name.
    • getJobDisplayName

      String getJobDisplayName()
      Get the name of the job.
      Returns:
      job name.