File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
MekHQ/src/mekhq/campaign/universe Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 4545import megamek .client .ratgenerator .FactionRecord ;
4646import megamek .common .annotations .Nullable ;
4747import megamek .common .universe .Faction2 ;
48+ import megamek .common .universe .FactionLeaderData ;
4849import megamek .common .universe .FactionTag ;
4950import megamek .common .universe .HonorRating ;
5051import mekhq .Utilities ;
@@ -566,4 +567,18 @@ public boolean performsBatchalls() {
566567 public boolean isAggregate () {
567568 return faction2 .isAggregate ();
568569 }
570+
571+ /**
572+ * Retrieves the faction leader in power during the specified year.
573+ *
574+ * @param year the year to check for a valid leader
575+ *
576+ * @return the {@link FactionLeaderData} for the leader valid in the given year, or {@code null} if none found
577+ *
578+ * @author Illiani
579+ * @since 0.50.07
580+ */
581+ public @ Nullable FactionLeaderData getLeaderForYear (final int year ) {
582+ return faction2 .getFactionLeaderForYear (year );
583+ }
569584}
You can’t perform that action at this time.
0 commit comments