client
This commit is contained in:
@@ -10,15 +10,17 @@ public class Client extends Thread {
|
|||||||
|
|
||||||
|
|
||||||
public void run(){
|
public void run(){
|
||||||
|
try{
|
||||||
entrer();
|
entrer();
|
||||||
for(int i = 0; i<this.restaurant.buffet.length; i++){
|
for(int i = 0; i<this.restaurant.buffet.length; i++){
|
||||||
prendre_portion(this.restaurant.buffet[i]);
|
prendre_portion(this.restaurant.buffet[i]);
|
||||||
|
}
|
||||||
|
cuir_au_stand(restaurant.stand_de_cuisson);
|
||||||
|
manger();
|
||||||
|
sort();
|
||||||
|
}catch (Exception e){
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
cuir_au_stand(restaurant.stand_de_cuisson);
|
|
||||||
manger();
|
|
||||||
sort();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void prendre_portion(Compartiment compartiment){
|
public void prendre_portion(Compartiment compartiment){
|
||||||
|
|||||||
Reference in New Issue
Block a user