Beispiel #1
0
 public void insertStaffs(Player owner, StaffContainer staffs)
 {
     // StaffContainer left = new StaffContainer();
     while (true)
     {
         Staff best = staffs.getBestStaff();
         if (best == null)
         {
             break;
         }
         staffs.removeStaff(best);
         best.setOwner(owner);
         Staff drop = this.addStaff(best);
         if (drop != null)
         {
             staffs.addStaff(drop);
             if (drop == best)
             {
                 break;
             }
         }
     }
 }
Beispiel #2
0
 public void splinterStaff(Staff staff)
 {
     fStaffs.removeStaff(staff);
 }