Skip to content

Method: GDStatementStrategyFactory()

1: package de.fhdw.gaming.ipspiel22.gefangenenDilemma.strategy;
2:
3: import de.fhdw.gaming.ipspiel22.gefangenenDilemma.domain.GDStrategy;
4: import de.fhdw.gaming.ipspiel22.gefangenenDilemma.domain.factory.GDStrategyFactory;
5: import de.fhdw.gaming.ipspiel22.gefangenenDilemma.moves.factory.GDMoveFactory;
6:
7: /**
8: * Implements {@link GDStrategyFactory} by creating a {@link GDStatementStrategy}.
9: */
10: public class GDStatementStrategyFactory implements GDStrategyFactory {
11:
12: @Override
13: public GDStrategy create(final GDMoveFactory moveFactory) {
14: return new GDStatementStrategy(moveFactory);
15: }
16:
17: }