Skip to content

Package: AbstractVGMove

AbstractVGMove

nameinstructionbranchcomplexitylinemethod
AbstractVGMove()
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: package de.fhdw.gaming.ipspiel22.vierGewinnt.moves.impl;
2:
3: import de.fhdw.gaming.ipspiel22.vierGewinnt.moves.VGMove;
4:
5: /**
6: * Represents a move allowed by the rules of the game.
7: * <p>
8: * The purpose of this class is solely to be able to check whether a {@link VGMove} implementation is allowed by the
9: * rules of the game. As this class is not public, custom strategies are unable to create {@link VGMove} objects that
10: * inherit from this class, so custom moves can be distinguished from possible moves easily.
11: */
12: public abstract class AbstractVGMove implements VGMove {
13: /**
14: * Protected constructor.
15: */
16: protected AbstractVGMove() {
17: // nothing to do
18: }
19:
20: /**
21: * Returns Column Int.
22: *
23: * @return Column int
24: */
25: public abstract int getColumnInt();
26: }