maj client
This commit is contained in:
@@ -10,13 +10,15 @@ public class Client extends Thread {
|
||||
|
||||
|
||||
public void run(){
|
||||
while(!this.restaurant.libre()){
|
||||
try {
|
||||
wait();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Mi piace tagliare gli spaghetti ! Mi piace la pizza all'ananas ! \n" + e);
|
||||
}
|
||||
|
||||
entrer();
|
||||
for(int i = 0; i<this.restaurant.buffet.length; i++){
|
||||
prendre_portion(this.restaurant.buffet[i]);
|
||||
}
|
||||
cuir_au_stand(restaurant.stand_de_cuisson);
|
||||
manger();
|
||||
sort();
|
||||
|
||||
}
|
||||
|
||||
public void prendre_portion(Compartiment compartiment){
|
||||
|
||||
Reference in New Issue
Block a user