Skip to content

Package: PlayerState

PlayerState

nameinstructionbranchcomplexitylinemethod
static {...}
M: 0 C: 33
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 6
100%
M: 0 C: 1
100%

Coverage

1: /*
2: * Copyright © 2020-2023 Fachhochschule für die Wirtschaft (FHDW) Hannover
3: *
4: * This file is part of gaming-core.
5: *
6: * Gaming-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: * Gaming-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: * gaming-core. If not, see <http://www.gnu.org/licenses/>.
18: */
19: package de.fhdw.gaming.core.domain;
20:
21: /**
22: * Represents the state of a player.
23: */
24: public enum PlayerState {
25:
26: /**
27: * The player is still participating in playing the game.
28: */
29: PLAYING,
30:
31: /**
32: * The player has deliberately decided to quit the game.
33: */
34: RESIGNED,
35:
36: /**
37: * The player has lost the game according to the rules of the game.
38: */
39: LOST,
40:
41: /**
42: * The player has won the game according to the rules of the game.
43: */
44: WON,
45:
46: /**
47: * The game ended in a draw.
48: */
49: DRAW
50: }