Skip to contentPackage: SspDefaultMoveFactory
SspDefaultMoveFactory
Coverage
      1: /*
2:  * Copyright © 2021-2023 Fachhochschule für die Wirtschaft (FHDW) Hannover
3:  *
4:  * This file is part of ipspiel23-Ssp.
5:  *
6:  * Ipspiel23-Ssp is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7:  * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8:  * version.
9:  *
10:  * Ipspiel23-Ssp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11:  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12:  *
13:  * You should have received a copy of the GNU General Public License along with ipspiel23-Ssp. If not, see
14:  * <http://www.gnu.org/licenses/>.
15:  */
16: package de.fhdw.gaming.ipspiel23.ssp.moves.impl;
17: 
18: import de.fhdw.gaming.ipspiel23.ssp.moves.SspMove;
19: import de.fhdw.gaming.ipspiel23.ssp.moves.factory.SspMoveFactory;
20: 
21: /**
22:  * Implements {@link SspMoveFactory}.
23:  */
24: public final class SspDefaultMoveFactory implements SspMoveFactory {
25: 
26:     @Override
27:     public SspMove createScissorsMove() {
28: 
29:         return new SspScissorsMove();
30:     }
31: 
32:     @Override
33:     public SspMove createStoneMove() {
34: 
35:         return new SspStoneMove();
36:     }
37: 
38:     @Override
39:     public SspMove createPaperMove() {
40: 
41:         return new SspPaperMove();
42:     }
43: }