Skip to content

Method: KopfundZahlKopfMove()

1: package de.fhdw.gaming.ipspiel22.kopfundzahl.moves.impl;
2:
3: import de.fhdw.gaming.core.domain.GameException;
4: import de.fhdw.gaming.ipspiel22.kopfundzahl.domain.KopfundZahlPlayer;
5: import de.fhdw.gaming.ipspiel22.kopfundzahl.domain.KopfundZahlState;
6:
7: /**
8: * Choose "head".
9: */
10: public class KopfundZahlKopfMove extends AbstractKopfundZahlMove {
11:
12: @Override
13: public void applyTo(final KopfundZahlState state, final KopfundZahlPlayer player) throws GameException {
14: player.setAnswer(true);
15: }
16:
17: @Override
18: public String toString() {
19: return "choose head";
20: }
21: }