Browse Source

Quelques commentaires / corrections

Alexandre Gonzalvez 3 years ago
parent
commit
0c7fe930df
1 changed files with 19 additions and 19 deletions
  1. 19
    19
      Application/Clavardage/src/controller/Controller.java

+ 19
- 19
Application/Clavardage/src/controller/Controller.java View File

@@ -440,6 +440,25 @@ public class Controller {
440 440
 	}
441 441
 	
442 442
 	
443
+	
444
+	
445
+	
446
+	
447
+	/********************* Fonction debug console => A mettre dans l'interface ******************************************/
448
+	
449
+	/**
450
+	 * <p>
451
+	 * Affichage de la liste d'utilisateurs actifs avec leurs index dans la liste
452
+	 * </p>
453
+	 */
454
+	public void printRemoteUserList() {
455
+		System.out.println("Internal list of active remote users:");
456
+		
457
+        for(int i=0; i<this.myUser.getRemoteUsersList().size(); i++) {
458
+        	System.out.println("- ("+i+") Username: " + this.myUser.getRemoteUsersList().get(i).getPseudo());
459
+        }
460
+    }
461
+	
443 462
 	/**
444 463
 	 * <p>
445 464
 	 * Laisse l'utilisateur choisir parmis la liste d'utilisateurs actifs celui avec lequel il souhaite échanger via un chat
@@ -465,25 +484,6 @@ public class Controller {
465 484
         }
466 485
     }
467 486
 	
468
-	
469
-	
470
-	/********************************** A mettre dans l'interface ******************************************/
471
-	
472
-	/**
473
-	 * <p>
474
-	 * Affichage de la liste d'utilisateurs actifs avec leurs index dans la liste
475
-	 * </p>
476
-	 */
477
-	public void printRemoteUserList() {
478
-		System.out.println("Internal list of active remote users:");
479
-		
480
-        for(int i=0; i<this.myUser.getRemoteUsersList().size(); i++) {
481
-        	System.out.println("- ("+i+") Username: " + this.myUser.getRemoteUsersList().get(i).getPseudo());
482
-        }
483
-    }
484
-	
485
-	
486
-	
487 487
 	/*************************************************************************************************************************/
488 488
 	public static void main(String[] args) throws IOException, InterruptedException {
489 489
 		

Loading…
Cancel
Save