Skip to content

Package: VGMoveFactory

VGMoveFactory

Coverage

1: package de.fhdw.gaming.ipspiel22.vierGewinnt.moves.factory;
2:
3: import de.fhdw.gaming.ipspiel22.vierGewinnt.domain.VGPosition;
4: import de.fhdw.gaming.ipspiel22.vierGewinnt.moves.VGMove;
5:
6: /**
7: * Allows to create Vier gewinnt moves.
8: */
9: public interface VGMoveFactory {
10: /**
11: * Creates a move "First Column".
12: */
13: VGMove createFirstColumnMove();
14:
15: /**
16: * Creates a move "Second Column".
17: */
18: VGMove createSecondColumnMove();
19:
20: /**
21: * Creates a move "Third Column".
22: */
23: VGMove createThirdColumnMove();
24:
25: /**
26: * Creates a move "Fourth Column".
27: */
28: VGMove createFourthColumnMove();
29:
30: /**
31: * Creates a move "Fifth Column".
32: */
33: VGMove createFifthColumnMove();
34:
35: /**
36: * Creates a move "Sixth Column".
37: */
38: VGMove createSixthColumnMove();
39:
40: /**
41: * Creates a move "Seventh Column".
42: */
43: VGMove createSeventhColumnMove();
44:
45: /**
46: * Creates a move that places a token on the board.
47: *
48: * @param redPlayer {@code true} if a red token is placed, and {@code false} if a yellow token is placed.
49: * @param position The position of the token placed on the board.
50: */
51: VGMove createTokenMove(boolean redPlayer, VGPosition position);
52:
53: }