Examples of River


Examples of com.google.code.timetrail.backend.River

   *
   * @param gameControl the control for the game
   */
  public RiverFrameBackend(Control gameControl) {
    this.gameControl = gameControl;
    this.currentRiver = new River(this.gameControl,
        this.gameControl.getCurrentPlace());
  }
View Full Code Here

Examples of com.google.code.timetrail.backend.River

  @Test
  public void testTakeFerryDoctor() {
    control.setPlayer(doctor);

    River river;
    for (Place p : places) {
      river = new River(control, p);
      String ferry = river.takeFerry();
      assertFalse(
          "Not able to take Ferry",
          ferry.equals("You don't have enough money to make it across!"));
    }

    river = new River(control, control.getCurrentPlace());
    assertEquals(40, river.getFerryPrice());

    control.getPlayer().intializeSkills();

    assertEquals(40, river.getFerryPrice());
  }
View Full Code Here

Examples of com.google.code.timetrail.backend.River

  @Test
  public void testFordDoctor() {
    control.setPlayer(doctor);

    River river;
    for (Place p : places) {
      river = new River(control, p);
      int passed = 0;
      for (int i = 0; i < 10000; i++) {
        String ford = river.ford();
        if (ford.equals("You sucessfully made it across the time stream"))
          passed++;
      }

      if (p.getName().equals("Kansas River")
View Full Code Here

Examples of com.google.code.timetrail.backend.River

 
  @Test
  public void testCaulkDoctor() {
    control.setPlayer(doctor);

    River river;
    for (Place p : places) {
      river = new River(control, p);
      int passed = 0;
      for (int i = 0; i < 10000; i++) {
        String ford = river.ford();
        if (ford.equals("You sucessfully made it across the time stream"))
          passed++;
      }

      assertEquals(.35, (double) passed / 10000.0, 0.55);
View Full Code Here

Examples of com.google.code.timetrail.backend.River

  @Test
  public void testTakeFerryEngineer() {
    control.setPlayer(engineer);

    River river;
    for (Place p : places) {
      river = new River(control, p);
      String ferry = river.takeFerry();
      assertFalse(
          "Not able to take Ferry",
          ferry.equals("You don't have enough money to make it across!"));
    }

    river = new River(control, control.getCurrentPlace());
    assertEquals(40, river.getFerryPrice());

    control.getPlayer().intializeSkills();

    assertEquals(40, river.getFerryPrice());
  }
View Full Code Here

Examples of com.google.code.timetrail.backend.River

  @Test
  public void testFordEngineer() {
    control.setPlayer(engineer);

    River river;
    for (Place p : places) {
      river = new River(control, p);
      int passed = 0;
      for (int i = 0; i < 10000; i++) {
        String ford = river.ford();
        if (ford.equals("You sucessfully made it across the time stream"))
          passed++;
      }

      if (p.getName().equals("Kansas River")
View Full Code Here

Examples of com.google.code.timetrail.backend.River

  @Test
  public void testCaulkEngineer() {
    control.setPlayer(engineer);

    River river;
    for (Place p : places) {
      river = new River(control, p);
      int passed = 0;
      for (int i = 0; i < 10000; i++) {
        String ford = river.ford();
        if (ford.equals("You sucessfully made it across the time stream"))
          passed++;
      }

      assertEquals(.35, (double) passed / 10000.0, 0.55);
View Full Code Here

Examples of com.google.code.timetrail.backend.River

 
  @Test
  public void testTakeFerryEntrepreneur() {
    control.setPlayer(entrepreneur);

    River river;
    for (Place p : places) {
      river = new River(control, p);
      String ferry = river.takeFerry();
      assertFalse(
          "Not able to take Ferry",
          ferry.equals("You don't have enough money to make it across!"));
    }

    river = new River(control, control.getCurrentPlace());
    assertEquals(40, river.getFerryPrice());

    control.getPlayer().intializeSkills();

    assertEquals(20, river.getFerryPrice());
  }
View Full Code Here

Examples of com.google.code.timetrail.backend.River

  @Test
  public void testFordEntrepreneur() {
    control.setPlayer(entrepreneur);

    River river;
    for (Place p : places) {
      river = new River(control, p);
      int passed = 0;
      for (int i = 0; i < 10000; i++) {
        String ford = river.ford();
        if (ford.equals("You sucessfully made it across the time stream"))
          passed++;
      }

      if (p.getName().equals("Kansas River")
View Full Code Here

Examples of com.google.code.timetrail.backend.River

  @Test
  public void testCaulkEntrepreneur() {
    control.setPlayer(entrepreneur);

    River river;
    for (Place p : places) {
      river = new River(control, p);
      int passed = 0;
      for (int i = 0; i < 10000; i++) {
        String ford = river.ford();
        if (ford.equals("You sucessfully made it across the time stream"))
          passed++;
      }

      assertEquals(.35, (double) passed / 10000.0, 0.55);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.