Exemple #1
0
 public void phase4() {
   System.out.println("Phase 4");
   lblStatus1.setText("Main Phase");
   lblStatus2.setText("Assigning AT...");
   lblStatus3.setText("");
   for (int i = iChar; i < listChar.length; iChar = ++i) {
     System.out.println(listChar[i]);
     if (listChar[i].isATReady()) {
       oActiveAvatar = listChar[i];
       oActiveAvatar.giveAT();
       lblStatus3.setText(oActiveAvatar.getName() + "'s AT");
       if (oParty.contains(oActiveAvatar)) stateAT();
       else stateWaiting();
       return;
     }
   }
   phase1();
 }