Skip to content

Package: VierGewinntState

VierGewinntState

Coverage

1: /*
2: * Copyright © 2021 Fachhochschule für die Wirtschaft (FHDW) Hannover
3: *
4: * This file is part of ipspiel21-tictactoe-core.
5: *
6: * ipspiel21-tictactoe-core is free software: you can redistribute it and/or modify it under
7: * the terms of the GNU General Public License as published by the Free Software
8: * Foundation, either version 3 of the License, or (at your option) any later
9: * version.
10: *
11: * ipspiel21-tictactoe-core is distributed in the hope that it will be useful, but WITHOUT
12: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14: * details.
15: *
16: * You should have received a copy of the GNU General Public License along with
17: * ipspiel21-tictactoe-core. If not, see <http://www.gnu.org/licenses/>.
18: */
19: package de.fhdw.gaming.ipspiel21.viergewinnt.core.domain;
20:
21: import de.fhdw.gaming.core.domain.State;
22: import de.fhdw.gaming.ipspiel21.viergewinnt.core.domain.moves.VierGewinntMove;
23:
24: /**
25: * Represents the state of a VierGewinnt game.
26: */
27: public interface VierGewinntState extends State<VierGewinntPlayer, VierGewinntState> {
28:
29: /**
30: * Returns the board.
31: */
32: VierGewinntBoard getBoard();
33:
34: /**
35: * Returns the player using yellow.
36: */
37: VierGewinntPlayer getYellowPlayer();
38:
39: /**
40: * Returns the player using red.
41: */
42: VierGewinntPlayer getRedPlayer();
43:
44: /**
45: * Returns the currently active player, i.e. the player that needs to make the next move.
46: */
47: VierGewinntPlayer getCurrentPlayer();
48:
49: /**
50: * Indicates that a move has been completed.
51: * @param move
52: */
53: void moveCompleted(VierGewinntMove move);
54: }