Skip to content

Package: IC4MoveFactory

IC4MoveFactory

Coverage

1: package de.fhdw.gaming.ipspiel23.c4.moves.factory;
2:
3: import de.fhdw.gaming.ipspiel23.c4.domain.IC4Position;
4: import de.fhdw.gaming.ipspiel23.c4.domain.IC4Player;
5: import de.fhdw.gaming.ipspiel23.c4.moves.IC4Move;
6:
7: /**
8: * A factory for creating {@link IC4Move} instances.
9: */
10: public interface IC4MoveFactory {
11:
12: /**
13: * Creates a new {@link IC4Move} instance.
14: *
15: * @param player The player that makes the move.
16: * @param position The position of the move.
17: * @return The created {@link IC4Move} instance.
18: */
19: IC4Move createMove(IC4Player player, IC4Position position);
20:
21: /**
22: * Creates a new {@link IC4Move} instance.
23: *
24: * @param player The player that makes the move.
25: * @param row The row of the move.
26: * @param column The column of the move.
27: * @return The created {@link IC4Move} instance.
28: */
29: IC4Move createMove(IC4Player player, int row, int column);
30: }
31: