Skip to content

Method: DilemmaReactiveStrategyFactory()

1: package de.fhdw.gaming.ipspiel23.dilemma.strategy.internals.reactive;
2:
3: import de.fhdw.gaming.ipspiel23.dilemma.domain.IDilemmaStrategy;
4: import de.fhdw.gaming.ipspiel23.dilemma.moves.IDilemmaMoveFactory;
5: import de.fhdw.gaming.ipspiel23.dilemma.strategy.IDilemmaStrategyFactory;
6:
7: /**
8: * Implements {@link IDilemmaStrategyFactory} by creating a {@link DilemmaReactiveStrategy}.
9: */
10: public class DilemmaReactiveStrategyFactory implements IDilemmaStrategyFactory {
11:
12: /**
13: * Creates strategy which is visible for the player to chose.
14: */
15: @Override
16: public IDilemmaStrategy create(final IDilemmaMoveFactory moveFactory) {
17: return new DilemmaReactiveStrategy(moveFactory);
18: }
19: }