Skip to content

Package: C4DefaultMoveFactory

C4DefaultMoveFactory

nameinstructionbranchcomplexitylinemethod
C4DefaultMoveFactory()
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%
createMove(IC4Player, IC4Position)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
createMove(IC4Player, int, int)
M: 0 C: 7
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.ipspiel23.c4.moves.impl;
2:
3: import de.fhdw.gaming.ipspiel23.c4.moves.factory.IC4MoveFactory;
4: import de.fhdw.gaming.ipspiel23.c4.moves.IC4Move;
5: import de.fhdw.gaming.ipspiel23.c4.domain.IC4Position;
6: import de.fhdw.gaming.ipspiel23.c4.domain.IC4Player;
7:
8: /**
9: * The default implementation of {@link IC4MoveFactory}.
10: */
11: public class C4DefaultMoveFactory implements IC4MoveFactory {
12:
13: @Override
14: public IC4Move createMove(final IC4Player player, final IC4Position position) {
15: return new C4Move(player, position);
16: }
17:
18: @Override
19: public IC4Move createMove(final IC4Player player, final int row, final int column) {
20: return new C4Move(player, row, column);
21: }
22: }