Skip to content

Method: applyTo(FGState, FGPlayer)

1: package de.fhdw.gaming.ipspiel24.fg.moves.impl;
2:
3: import de.fhdw.gaming.core.domain.GameException;
4: import de.fhdw.gaming.ipspiel24.fg.domain.FGActivity;
5: import de.fhdw.gaming.ipspiel24.fg.domain.FGPlayer;
6: import de.fhdw.gaming.ipspiel24.fg.domain.FGState;
7:
8: /**
9: * Says "no".
10: */
11: public class FGFootballMove extends AbstractFGMove {
12:
13: @Override
14: public void applyTo(final FGState state, final FGPlayer player) throws GameException {
15: player.setAnswer(FGActivity.FOOTBALL);
16: }
17:
18: @Override
19: public String toString() {
20: return "Watching Football";
21: }
22: }