Skip to content

Package: SspGameBuilderFactory

SspGameBuilderFactory

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.domain;
17:
18: import de.fhdw.gaming.core.domain.GameBuilderFactory;
19: import de.fhdw.gaming.core.domain.GameException;
20: import de.fhdw.gaming.core.ui.InputProvider;
21:
22: /**
23: * A SSP {@link GameBuilderFactory} which allows to create a SSP game builder.
24: */
25: public interface SspGameBuilderFactory extends GameBuilderFactory {
26:
27: /**
28: * Player's outcome on Stein/Stein.
29: */
30: String PARAM_PLAYER_OUTCOME_STONE_STONE = "playerOutcomeOnSteinStein";
31:
32: /**
33: * Player's outcome on Stein/Papier.
34: */
35: String PARAM_PLAYER_OUTCOME_STONE_PAPER = "playerOutcomeOnSteinPapier";
36:
37: /**
38: * Player's outcome on Stein/Schere.
39: */
40: String PARAM_PLAYER_OUTCOME_STONE_SCISSORS = "playerOutcomeOnSteinSchere";
41:
42: /**
43: * Player's outcome on Papier/Stein.
44: */
45: String PARAM_PLAYER_OUTCOME_PAPER_STONE = "playerOutcomeOnPapierStein";
46: /**
47: * Player's outcome on Papier/Papier.
48: */
49: String PARAM_PLAYER_OUTCOME_PAPER_PAPER = "playerOutcomeOnPapierPapier";
50: /**
51: * Player's outcome on Papier/Schere.
52: */
53: String PARAM_PLAYER_OUTCOME_PAPER_SCISSORS = "playerOutcomeOnPapierSchere";
54:
55: /**
56: * Player's outcome on Papier/Stein.
57: */
58: String PARAM_PLAYER_OUTCOME_SCISSORS_STONE = "playerOutcomeOnSchereStein";
59: /**
60: * Player's outcome on Papier/Stein.
61: */
62: String PARAM_PLAYER_OUTCOME_SCISSORS_PAPER = "playerOutcomeOnScherePapier";
63: /**
64: * Player's outcome on Papier/Stein.
65: */
66: String PARAM_PLAYER_OUTCOME_SCISSORS_SCISSORS = "playerOutcomeOnSchereSchere";
67:
68: @Override
69: SspGameBuilder createGameBuilder(InputProvider inputProvider) throws GameException;
70: }