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 SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface megamek.common.interfaces.FullGameReportadd
- 
Constructor Details- 
SBFFullGameReportpublic SBFFullGameReport()
 
- 
- 
Method Details- 
addDescription 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 interface- FullGameReport<SBFReportEntry>
- Parameters:
- round- The round the report is for
- reports- The list of reports to add
- See Also:
 
- 
hasReportsForRoundpublic 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 interface- FullGameReport<SBFReportEntry>
- Parameters:
- round- The game round to test
- Returns:
- False when no report has been added for the given round, true otherwise
 
- 
getDescription 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 interface- FullGameReport<SBFReportEntry>
- Parameters:
- round- The game round to get the reports for
- See Also:
 
- 
clearpublic void clear()Description copied from interface:FullGameReportClears this FullGameReport, removing all present reports for all rounds.- Specified by:
- clearin interface- FullGameReport<SBFReportEntry>
 
- 
replaceAllReports
- 
createFilteredReport
 
-