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 TypeMethodDescriptionvoid
add
(int round, List<SBFReportEntry> reports) Adds the given list of report entries for the given game round to this FullGameReport.void
clear()
Clears this FullGameReport, removing all present reports for all rounds.createFilteredReport
(Player recipient) get
(int round) Returns the reports for the given game round.boolean
hasReportsforRound
(int round) Returns false when no reports have been added for the given round at all.void
replaceAllReports
(Map<Integer, List<SBFReportEntry>> newReports) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface megamek.common.FullGameReport
add
-
Constructor Details
-
SBFFullGameReport
public SBFFullGameReport()
-
-
Method Details
-
add
Description copied from interface:FullGameReport
Adds 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:
add
in 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:FullGameReport
Returns 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:
hasReportsforRound
in 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:FullGameReport
Returns the reports for the given game round. Note that this method should not return null but rather an empty list.- Specified by:
get
in interfaceFullGameReport<SBFReportEntry>
- Parameters:
round
- The game round to get the reports for- See Also:
-
clear
public void clear()Description copied from interface:FullGameReport
Clears this FullGameReport, removing all present reports for all rounds.- Specified by:
clear
in interfaceFullGameReport<SBFReportEntry>
-
replaceAllReports
-
createFilteredReport
-