Class AutoAwardsController
java.lang.Object
mekhq.campaign.personnel.autoAwards.AutoAwardsController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidissueAward(Campaign campaign, Person person, Award award) Gives a person an award and logs it.voidissueEligibleAwards(Campaign campaign) Issues every award the campaign's personnel are eligible for, exactly as accepting the award ceremony unchanged would, without showing it.voidManualController(Campaign campaign, boolean isManualPrompt) The controller for the manual-automatic processing of AwardsvoidPostGraduationController(Campaign campaign, List<UUID> personnel, HashMap<UUID, List<Object>> academyAttributes) The primary controller for the automatic processing of Training AwardsvoidPostMissionController(Campaign campaign, AbstractContract mission, Boolean missionWasSuccessful, List<Person> POWPersonnel) The primary controller for the automatic processing of AwardsvoidPostScenarioController(Campaign campaign, HashMap<UUID, Integer> personnel, HashMap<UUID, List<Kill>> scenarioKills, boolean wasCivilianHelp) Processes awards after a scenario is concluded.prepareAwardData(UUID person, List<Award> eligibleAwards) This is called from within an Award Type module and prepares data for use by displayAwardCeremony()voidPromotionController(Campaign campaign, boolean isManualPrompt) The controller for the processing of awards prompted by a change in rank
-
Constructor Details
-
AutoAwardsController
public AutoAwardsController()
-
-
Method Details
-
issueEligibleAwards
Issues every award the campaign's personnel are eligible for, exactly as accepting the award ceremony unchanged would, without showing it. Shows nothing, so it is safe to call before the campaign window exists.- Parameters:
campaign- the campaign to be processed
-
issueAward
Gives a person an award and logs it. A promotion award replaces any promotion award they already hold.- Parameters:
campaign- the campaign the person belongs toperson- the person receiving the awardaward- the award
-
ManualController
The controller for the manual-automatic processing of Awards- Parameters:
campaign- the campaign to be processed
-
PromotionController
The controller for the processing of awards prompted by a change in rank- Parameters:
campaign- the campaign to be processed
-
PostMissionController
public void PostMissionController(Campaign campaign, AbstractContract mission, Boolean missionWasSuccessful, @Nullable List<Person> POWPersonnel) The primary controller for the automatic processing of Awards- Parameters:
campaign- the campaign to be processedmission- the mission just completedmissionWasSuccessful- true if the Mission was a complete Success, otherwise falsePOWPersonnel- a list of persons that have been a prisoner of war in the current mission
-
PostScenarioController
public void PostScenarioController(Campaign campaign, HashMap<UUID, Integer> personnel, HashMap<UUID, List<Kill>> scenarioKills, boolean wasCivilianHelp) Processes awards after a scenario is concluded.- Parameters:
campaign- the campaignpersonnel- the personnel involved in the scenario, mapped by their UUIDscenarioKills- the kills made during the scenario, mapped by personnel UUIDwasCivilianHelp- whether the scenario (if any) was AtB Scenario CIVILIAN_HELP
-
PostGraduationController
public void PostGraduationController(Campaign campaign, List<UUID> personnel, HashMap<UUID, List<Object>> academyAttributes) The primary controller for the automatic processing of Training Awards- Parameters:
campaign- the campaign to be processed
-
prepareAwardData
This is called from within an Award Type module and prepares data for use by displayAwardCeremony()- Parameters:
person- the person being processedeligibleAwards- the Awards they are eligible for
-