Interface IBuildingWorkerModule
- All Known Implementing Classes:
ChildrenBuildingModule,CraftingWorkerBuildingModule,DeliverymanAssignmentModule,GuardBuildingModule,HospitalAssignmentModule,LumberjackAssignmentModule,MinerBuildingModule,NoPrivateCrafterWorkerModule,StableCavalryBuildingModule,WorkAtHomeBuildingModule,WorkerBuildingModule
public interface IBuildingWorkerModule
-
Method Summary
Modifier and TypeMethodDescriptionbooleanMethod which defines if a worker should be allowed to work during the rain.@NotNull IJob<?>createJob(ICitizenData citizen) The abstract method which creates a job for the building.Getter for the job entry.@NotNull SkillPrimary skill getter.@NotNull SkillSecondary skill getter.
-
Method Details
-
createJob
The abstract method which creates a job for the building.- Parameters:
citizen- the citizen to take the job.- Returns:
- the Job.
-
canWorkDuringTheRain
boolean canWorkDuringTheRain()Method which defines if a worker should be allowed to work during the rain.- Returns:
- true if so.
-
getPrimarySkill
Primary skill getter.- Returns:
- the primary skill.
-
getSecondarySkill
Secondary skill getter.- Returns:
- the secondary skill.
-
getJobEntry
JobEntry getJobEntry()Getter for the job entry.- Returns:
- the entry.
-