Skip to content

Method: AbstractGDMove()

1: package de.fhdw.gaming.ipspiel22.gefangenenDilemma.moves.impl;
2:
3: import de.fhdw.gaming.ipspiel22.gefangenenDilemma.moves.GDMove;
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 GDMove} implementation is allowed by the
9: * rules of the game. As this class is not exported, custom strategies are unable to create {@link GDMove} objects that
10: * inherit from this class, so custom moves can be distinguished from possible moves easily.
11: */
12: public abstract class AbstractGDMove implements GDMove {
13: /**
14: * Protected constructor.
15: */
16: protected AbstractGDMove() {
17: // nothing to do
18: }
19: }