Package test_cases

Source Code of test_cases.Utkozeselkerules

package test_cases;

import game_timer.GameTimer;
import logger.Logger;
import route.Route;
import vehicles.OrdinaryCar;
import vehicles.Vehicle;
/**
* Ez a teszteset a k�vetkez� helyzetet reprezent�lja:
* A bankrabl� �tk�zik a keresztez�d�sben
*
*/
public class Utkozeselkerules extends Abstract_TestCase{
  private Route route;
  private Vehicle vehicle1;
  private Vehicle vehicle2;
 
  /**
   * A teszteset konstruktora:
   * - l�trehozza az el�felt�teleket
   * - jelzi, ha az el�feltetlek l�trehoz�sa befejez�d�tt
   * - megh�vja a sz�ks�ges met�dusokat
   */
 
  public Utkozeselkerules(){
    clearScreen();
    Logger.get().addOrdinaryMessage("___________KET AUTO AZ UTON, UTKOZESELKERULES___________");
    GameTimer.setNotifyEnabled(false);//turn off time.
    Logger.get().addOrdinaryMessage("[[[Kiindulohelyzet kialakitasa]]]");
    route = new Route();
    vehicle1 = new OrdinaryCar();
    vehicle2 = new OrdinaryCar();
    route.addVehicle(vehicle1);
    route.addVehicle(vehicle2);
    Logger.get().addOrdinaryMessage("[[[Kiindulohelyzet kialakitasa vege]]]");
    Logger.get().addOrdinaryMessage("[A Route.moveCars() metodus meghivasa...]:");
    route.moveCars();
    Logger.get().finishLogging();
    returnToMainMenu();
  }

}
TOP

Related Classes of test_cases.Utkozeselkerules

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.