Class AutoAwardsController
java.lang.Object
mekhq.campaign.personnel.autoAwards.AutoAwardsController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
ManualController
(Campaign campaign, boolean isManualPrompt) The controller for the manual-automatic processing of Awardsvoid
PostGraduationController
(Campaign campaign, List<UUID> personnel, HashMap<UUID, List<Object>> academyAttributes) The primary controller for the automatic processing of Training Awardsvoid
PostMissionController
(Campaign campaign, Mission mission, Boolean missionWasSuccessful) The primary controller for the automatic processing of Awardsvoid
PostScenarioController
(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()void
PromotionController
(Campaign campaign, boolean isManualPrompt) The controller for the processing of awards prompted by a change in rank
-
Constructor Details
-
AutoAwardsController
public AutoAwardsController()
-
-
Method Details
-
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
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 false
-
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 CIVILIANHELP
-
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
-