All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eg.triviaGameExample.fitnesseFixtures.GameTurnFixture Maven / Gradle / Ivy

There is a newer version: 20240707
Show newest version
package eg.triviaGameExample.fitnesseFixtures;

import eg.triviaGameExample.Game;

public class GameTurnFixture {
  private int roll;
  private Game theGame;

  public String player() {
    theGame = StaticGame.theGame;
    return theGame.takeTurn(roll);
  }

  public void execute() {
    StaticGame.theGame.takeTurn(roll);
  }

  public boolean gameHasStarted() {
    theGame = StaticGame.theGame;
    return theGame.gameHasStarted();
  }

  public void setRoll(int roll) {
    this.roll = roll;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy