(final Game game)
| 38 | private transient GameLog gameLog; |
| 39 | |
| 40 | public GameView(final Game game) { |
| 41 | super(game.getId(), game.getTracker()); |
| 42 | match = game.getMatch(); |
| 43 | this.game = game; |
| 44 | this.gameLog = game.getGameLog(); |
| 45 | set(TrackableProperty.Title, game.getMatch().getTitle()); |
| 46 | set(TrackableProperty.WinningTeam, -1); |
| 47 | |
| 48 | GameRules rules = game.getRules(); |
| 49 | set(TrackableProperty.IsCommander, rules.hasCommander()); |
| 50 | set(TrackableProperty.GameType, rules.getGameType()); |
| 51 | set(TrackableProperty.PoisonCountersToLose, rules.getPoisonCountersToLose()); |
| 52 | set(TrackableProperty.NumGamesInMatch, rules.getGamesPerMatch()); |
| 53 | |
| 54 | set(TrackableProperty.NumPlayedGamesInMatch, game.getMatch().getOutcomes().size()); |
| 55 | } |
| 56 | |
| 57 | public Match getMatch() { |
| 58 | return match; |
nothing calls this directly
no test coverage detected