Skip to content

Package: VGState

VGState

Coverage

1: package de.fhdw.gaming.ipspiel22.vierGewinnt.domain;
2:
3: import de.fhdw.gaming.core.domain.State;
4:
5: /**
6: * Represents the state of a Vier gewinnt game.
7: */
8: public interface VGState extends State<VGPlayer, VGState> {
9:
10: /**
11: * Returns the board.
12: */
13: VGBoard getBoard();
14:
15: /**
16: * Returns the player using red chips.
17: */
18: VGPlayer getRedPlayer();
19:
20: /**
21: * Returns the player using yellow chips.
22: */
23: VGPlayer getYellowPlayer();
24:
25: /**
26: * Returns the currently active player, i.e. the player that needs to make the next move.
27: */
28: VGPlayer getCurrentPlayer();
29:
30: /**
31: * Updates the player states after the game has finished, without someone winning. Sets Playerstate to DRAW.
32: */
33: void gameOver();
34:
35: }