mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
some small tweaks for CardList operations in some source files
This commit is contained in:
@@ -86,7 +86,7 @@ public class ReadBoosterPack implements NewConstants {
|
||||
public CardList getBoosterPack5() {
|
||||
CardList list = new CardList();
|
||||
for(int i = 0; i < 5; i++)
|
||||
list.addAll(getBoosterPack().toArray());
|
||||
list.addAll(getBoosterPack());
|
||||
|
||||
for(int i = 0; i < 20; i++) {
|
||||
list.add(AllZone.CardFactory.getCard("Forest", AllZone.HumanPlayer));
|
||||
@@ -360,7 +360,7 @@ public class ReadBoosterPack
|
||||
{
|
||||
CardList list = new CardList();
|
||||
for(int i = 0; i < 5; i++)
|
||||
list.addAll(getBoosterPack().toArray());
|
||||
list.addAll(getBoosterPack());
|
||||
|
||||
for(int i = 0; i < 40; i++)
|
||||
{
|
||||
|
||||
@@ -53,7 +53,7 @@ public class ReadDraftBoosterPack implements NewConstants {
|
||||
public CardList getBoosterPack5() {
|
||||
CardList list = new CardList();
|
||||
for(int i = 0; i < 5; i++)
|
||||
list.addAll(getBoosterPack().toArray());
|
||||
list.addAll(getBoosterPack());
|
||||
|
||||
for(int i = 0; i < 20; i++) {
|
||||
list.add(AllZone.CardFactory.getCard("Forest", AllZone.HumanPlayer));
|
||||
|
||||
@@ -114,8 +114,8 @@ class TableModel extends AbstractTableModel {
|
||||
|
||||
public CardList getCards() {
|
||||
CardList all = new CardList();
|
||||
all.addAll(dataCopies.toArray());
|
||||
all.addAll(dataNoCopies.toArray());
|
||||
all.addAll(dataCopies);
|
||||
all.addAll(dataNoCopies);
|
||||
|
||||
return all;
|
||||
}
|
||||
@@ -313,8 +313,8 @@ class TableModel extends AbstractTableModel {
|
||||
recentAscending = ascending;
|
||||
|
||||
CardList all = new CardList();
|
||||
all.addAll(dataNoCopies.toArray());
|
||||
all.addAll(dataCopies.toArray());
|
||||
all.addAll(dataNoCopies);
|
||||
all.addAll(dataCopies);
|
||||
|
||||
TableSorter sorter = new TableSorter(all, column, ascending, true);
|
||||
Card[] array = all.toArray();
|
||||
|
||||
Reference in New Issue
Block a user