Skip to content

Method: KopfundZahlundKanteZahlMove()

1: package de.fhdw.gaming.ipspiel22.kopfundzahlundkante.moves.impl;
2:
3: import de.fhdw.gaming.core.domain.GameException;
4: import de.fhdw.gaming.ipspiel22.kopfundzahlundkante.domain.KopfundZahlundKanteAnswerEnum;
5: import de.fhdw.gaming.ipspiel22.kopfundzahlundkante.domain.KopfundZahlundKantePlayer;
6: import de.fhdw.gaming.ipspiel22.kopfundzahlundkante.domain.KopfundZahlundKanteState;
7:
8: /**
9: * Choose "tail".
10: */
11: public class KopfundZahlundKanteZahlMove extends AbstractKopfundZahlundKanteMove {
12:
13: @Override
14: public void applyTo(final KopfundZahlundKanteState state,
15: final KopfundZahlundKantePlayer player) throws GameException {
16: player.setAnswer(KopfundZahlundKanteAnswerEnum.TAIL);
17: }
18:
19: @Override
20: public String toString() {
21: return "choose tail";
22: }
23: }