Package megamek.common
Interface FullGameReport<T extends ReportEntry>
- Type Parameters:
T
- The type of individual report entry used
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
GameReports
,SBFFullGameReport
This interface is implemented by objects that represent a collection of reports representing the
course of a game.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the given list of report entries for the given game round to this FullGameReport.default void
Adds the given report entry for the given game round to this FullGameReport.void
clear()
Clears this FullGameReport, removing all present reports for all rounds.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.
-
Method Details
-
add
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.- Parameters:
round
- The round the report is forreports
- The list of reports to add- See Also:
-
add
Adds the given report entry 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.- Parameters:
round
- The round the report is forreport
- The report to add- See Also:
-
hasReportsforRound
boolean hasReportsforRound(int round) 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.- Parameters:
round
- The game round to test- Returns:
- False when no report has been added for the given round, true otherwise
-
get
Returns the reports for the given game round. Note that this method should not return null but rather an empty list.- Parameters:
round
- The game round to get the reports for- See Also:
-
clear
void clear()Clears this FullGameReport, removing all present reports for all rounds.
-