Esempio n. 1
0
 public void makeAvatarOrder(String sOrder) {
   String[] sTemp = sOrder.split("\\|");
   String[] sTemp2;
   listChar = new Avatar[sTemp.length];
   for (int i = 0; i < listChar.length; i++) {
     sTemp2 = sTemp[i].split(",");
     if (sTemp2[0].equals("A")) listChar[i] = oParty.getAvatar(Integer.parseInt(sTemp2[1]));
     else listChar[i] = oOpponentParty.getAvatar(Integer.parseInt(sTemp2[1]));
   }
 }
Esempio n. 2
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();
 }