Skip to content

Package: FGFootballMove

FGFootballMove

nameinstructionbranchcomplexitylinemethod
FGFootballMove()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
applyTo(FGState, FGPlayer)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
toString()
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: package de.fhdw.gaming.ipspiel24.fg.moves.impl;
2:
3: import de.fhdw.gaming.core.domain.GameException;
4: import de.fhdw.gaming.ipspiel24.fg.domain.FGActivity;
5: import de.fhdw.gaming.ipspiel24.fg.domain.FGPlayer;
6: import de.fhdw.gaming.ipspiel24.fg.domain.FGState;
7:
8: /**
9: * Says "no".
10: */
11: public class FGFootballMove extends AbstractFGMove {
12:
13: @Override
14: public void applyTo(final FGState state, final FGPlayer player) throws GameException {
15: player.setAnswer(FGActivity.FOOTBALL);
16: }
17:
18: @Override
19: public String toString() {
20: return "Watching Football";
21: }
22: }