Skip to content

Package: FzgPlayerBuilder

FzgPlayerBuilder

Coverage

1: package de.fhdw.gaming.ipspiel23.freizeitgestaltung.domain;
2:
3: import java.util.Map;
4:
5: import de.fhdw.gaming.core.domain.GameException;
6: import de.fhdw.gaming.ipspiel23.freizeitgestaltung.move.AnswerOptions;
7:
8: /**
9: * Builder to Create a Player.
10: *
11: */
12: public interface FzgPlayerBuilder {
13:
14: /**
15: * Changes the name of a Player.
16: * @param newName new name of the player.
17: * @return {@code this}
18: */
19: FzgPlayerBuilder changeName(String newName);
20:
21: /**
22: * Changes the possible Outcome of a Player.
23: * First Key: Answer of first player, second key: Answer of second player.
24: * Value outcome for the constellation of answers.
25: * @param possibleOutcomes
26: */
27: FzgPlayerBuilder changePossibleOutcomes(Map<AnswerOptions, Map<AnswerOptions, Double>> possibleOutcomes);
28:
29: /**
30: * Builds the player.
31: * @return the player.
32: * @throws GameException
33: */
34: FzgPlayer build() throws GameException;
35: }