Skip to contentMethod: create(IDilemmaMoveFactory)
      1: package de.fhdw.gaming.ipspiel23.dilemma.strategy.internals.cooperate;
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 DilemmaCooperateStrategy}.
9:  */
10: public class DilemmaCooperateStrategyFactory 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 DilemmaCooperateStrategy(moveFactory);
18:     }
19: }