Skip to content

Commit

Permalink
Issue 3650: JavaDoc addition
Browse files Browse the repository at this point in the history
  • Loading branch information
psikomonkie committed Jan 9, 2025
1 parent 95ba8f8 commit 628c13b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MekHQ/src/mekhq/campaign/unit/Unit.java
Original file line number Diff line number Diff line change
Expand Up @@ -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())) {
Expand Down

0 comments on commit 628c13b

Please sign in to comment.