From 628c13b900f6c70c3d2033ff69beffc96579a94c Mon Sep 17 00:00:00 2001 From: psikomonkie <189469115+psikomonkie@users.noreply.github.com> Date: Thu, 9 Jan 2025 13:49:07 -0500 Subject: [PATCH] Issue 3650: JavaDoc addition --- MekHQ/src/mekhq/campaign/unit/Unit.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MekHQ/src/mekhq/campaign/unit/Unit.java b/MekHQ/src/mekhq/campaign/unit/Unit.java index 9ff8b3ffdd..0de10f37a2 100644 --- a/MekHQ/src/mekhq/campaign/unit/Unit.java +++ b/MekHQ/src/mekhq/campaign/unit/Unit.java @@ -487,6 +487,12 @@ public ITransportAssignment getTransportAssignment(CampaignTransportType campaig return null; } + /** + * Set this unit's transport assignment to the provided assignment, if possible + * @param campaignTransportType type (enum) of transport type + * @param assignment the assignment we're setting for this unit + * @see CampaignTransportType + */ public void setTransportAssignment(CampaignTransportType campaignTransportType, ITransportAssignment assignment) { if (campaignTransportType.isShipTransport()) { if (assignment.getClass().isAssignableFrom(campaignTransportType.getTransportAssignmentType())) {