Package test_cases

Source Code of test_cases.Ido_leptetese

package test_cases;


import game_timer.GameTimer;
import logger.Logger;
import route.Route;
import cross.Bank;
import cross.EntryPoint;
import cross.HidingPlace;
import cross.LampCross;
import cross.QuitPoint;
import cross.StopCross;

/**
* Ez a teszteset a k�vetkez� helyzetet reprezent�lja:
* Id� l�ptet�se
*
*/

public class Ido_leptetese extends Abstract_TestCase{
  private Route route ;
  private EntryPoint entry_point;
  private QuitPoint quit_point ;
  private StopCross stop_cross ;
  private LampCross lamp_cross ;
  private Bank bank ;
  private HidingPlace hiding_place ;
  private GameTimer gameTimer = null;
 
  boolean wait = true;
  /**
   * A teszteset konstruktora:
   * - l�trehozza az el�felt�teleket
   * - megh�vja a sz�ks�ges met�dusokat
   */
  public Ido_leptetese(){
    try{
      clearScreen();
     
      Logger.get().addOrdinaryMessage("___________Ido leptetese szekvencia!___________");
      GameTimer.setNotifyEnabled(true);
      route = new Route();
      entry_point = new EntryPoint();
      quit_point = new QuitPoint();
      stop_cross = new StopCross();
      lamp_cross = new LampCross();
      bank = new Bank();
      hiding_place = new HidingPlace();
//      gameTimer = GameTimer.getInstance(true);//biztos, ami biztos, kapcsoljuk be azt, h mutassa az esemenyeket
      while(wait){
        if(GameTimer.getInstance().isFinished()){
          Logger.get().finishLogging();
          Thread.currentThread().sleep(5);
          wait = false;
        }
      }
      Logger.get().finishLogging();
      returnToMainMenu();     
    } catch(Exception e){
      e.printStackTrace();
    }
  }
}
TOP

Related Classes of test_cases.Ido_leptetese

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.