Skip to content

Package: VGFieldState

VGFieldState

nameinstructionbranchcomplexitylinemethod
static {...}
M: 0 C: 34
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 4
100%
M: 0 C: 1
100%

Coverage

1: /*
2: * Copyright © 2020 Fachhochschule für die Wirtschaft (FHDW) Hannover
3: *
4: * This file is part of othello-core.
5: *
6: * Othello-core is free software: you can redistribute it and/or modify
7: * it under the terms of the GNU General Public License as published by
8: * the Free Software Foundation, either version 3 of the License, or
9: * (at your option) any later version.
10: *
11: * Othello-core is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with othello-core. If not, see <http://www.gnu.org/licenses/>.
18: */
19: package de.fhdw.gaming.ipspiel22.vierGewinnt.domain;
20:
21: /**
22: * Represents the state of a field.
23: */
24: public enum VGFieldState {
25:
26: /**
27: * The field is empty.
28: */
29: EMPTY {
30:
31: @Override
32: public String toString() {
33: return "empty";
34: }
35: },
36:
37: /**
38: * There is a red token on the field.
39: */
40: RED {
41:
42: @Override
43: public String toString() {
44: return "red";
45: }
46: },
47:
48: /**
49: * There is a yellow token on the field.
50: */
51: YELLOW {
52:
53: @Override
54: public String toString() {
55: return "yellow";
56: }
57: };
58:
59:
60: @Override
61: public abstract String toString();
62: }