Skip to content

Package: AbstractDemoMove

AbstractDemoMove

nameinstructionbranchcomplexitylinemethod
AbstractDemoMove()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%

Coverage

1: /*
2: * Copyright © 2021-2023 Fachhochschule für die Wirtschaft (FHDW) Hannover
3: *
4: * This file is part of ipspiel24-demo.
5: *
6: * Ipspiel24-demo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7: * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8: * version.
9: *
10: * Ipspiel24-demo is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11: * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12: *
13: * You should have received a copy of the GNU General Public License along with ipspiel24-demo. If not, see
14: * <http://www.gnu.org/licenses/>.
15: */
16: package de.fhdw.gaming.ipspiel24.demo.moves.impl;
17:
18: import de.fhdw.gaming.ipspiel24.demo.moves.DemoMove;
19:
20: /**
21: * Represents a move allowed by the rules of the game.
22: * <p>
23: * The purpose of this class is solely to be able to check whether a {@link DemoMove} implementation is allowed by the
24: * rules of the game. As this class is not public, custom strategies are unable to create {@link DemoMove} objects that
25: * inherit from this class, so custom moves can be distinguished from possible moves easily.
26: */
27: public abstract class AbstractDemoMove implements DemoMove {
28:
29: /**
30: * Protected constructor.
31: */
32: protected AbstractDemoMove() {
33: // nothing to do
34: }
35: }