Skip to content
Snippets Groups Projects
Commit b8ded32f authored by Yanis OUALAN's avatar Yanis OUALAN
Browse files

Changement nombre doctor

parent 18c195a0
No related branches found
No related tags found
No related merge requests found
Pipeline #41689 passed
......@@ -27,7 +27,7 @@ public class SimulatorApplication extends javafx.application.Application {
public static final int PAPER_COUNT = 10;
public static final int ROCK_COUNT = 10;
public static final int CISOR_COUNT = 10;
public static final int DOCTOR_COUNT = 10;
public static final int DOCTOR_COUNT = 3;
public static final int PATIENT_COUNT = 70;
public static final int VIRUS_COUNT = 6;
......@@ -56,6 +56,9 @@ public class SimulatorApplication extends javafx.application.Application {
loader.setLocation(location);
view = loader.load();
Controller controller = loader.getController();
try{
if(SimulatorApplication.arguments == null){
SimulatorApplication.arguments = new String[1];
SimulatorApplication.arguments[0] = "firefighter";
......@@ -72,7 +75,9 @@ public class SimulatorApplication extends javafx.application.Application {
controller.initializeDoctor();
break;
}
}catch(ArrayIndexOutOfBoundsException e){
controller.initializeFireFighter();
}
}
private void showScene() {
......
......@@ -132,6 +132,7 @@ public class Controller {
}
public void initializeDoctor() {
System.out.println("Initializing doctor virus patient");
int columnCount = SimulatorApplication.COLUMN_COUNT;
int rowCount = SimulatorApplication.ROW_COUNT;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment