Package megamek.common
Class SBFFullGameReport
java.lang.Object
megamek.common.SBFFullGameReport
- All Implemented Interfaces:
Serializable,FullGameReport<SBFReportEntry>
This class gathers the full game report for an SBF game.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int round, List<SBFReportEntry> reports) Adds the given list of report entries for the given game round to this FullGameReport.voidclear()Clears this FullGameReport, removing all present reports for all rounds.createFilteredReport(Player recipient) get(int round) Returns the reports for the given game round.booleanhasReportsForRound(int round) Returns false when no reports have been added for the given round at all.voidreplaceAllReports(Map<Integer, List<SBFReportEntry>> newReports) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface megamek.common.interfaces.FullGameReport
add
-
Constructor Details
-
SBFFullGameReport
public SBFFullGameReport()
-
-
Method Details
-
add
Description copied from interface:FullGameReportAdds the given list of report entries for the given game round to this FullGameReport. Note that in the present implementationGameReports, rounds 0 (deployment) and 1 are lumped together as round 1.- Specified by:
addin interfaceFullGameReport<SBFReportEntry>- Parameters:
round- The round the report is forreports- The list of reports to add- See Also:
-
hasReportsForRound
public boolean hasReportsForRound(int round) Description copied from interface:FullGameReportReturns false when no reports have been added for the given round at all. Returns true when at least one report for the given round is present even if it is empty.- Specified by:
hasReportsForRoundin interfaceFullGameReport<SBFReportEntry>- Parameters:
round- The game round to test- Returns:
- False when no report has been added for the given round, true otherwise
-
get
Description copied from interface:FullGameReportReturns the reports for the given game round. Note that this method should not return null but rather an empty list.- Specified by:
getin interfaceFullGameReport<SBFReportEntry>- Parameters:
round- The game round to get the reports for- See Also:
-
clear
public void clear()Description copied from interface:FullGameReportClears this FullGameReport, removing all present reports for all rounds.- Specified by:
clearin interfaceFullGameReport<SBFReportEntry>
-
replaceAllReports
-
createFilteredReport
-